Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b197e1f authored by Andreas Huber's avatar Andreas Huber
Browse files

Use NuPlayer for HTTP live streaming playback by default.

Reversed the property logic, set media.httplive.disable-nuplayer to true to revert

Change-Id: I1057940667aaab56bb75c9ea15c2cdcab736f3c6
parent b1787e3b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -733,8 +733,8 @@ player_type getPlayerType(const char* url)
    }

    char value[PROPERTY_VALUE_MAX];
    if (property_get("media.httplive.enable-nuplayer", value, NULL)
            && (!strcasecmp(value, "true") || !strcmp(value, "1"))) {
    if (!property_get("media.httplive.disable-nuplayer", value, NULL)
            || (strcasecmp(value, "true") && strcmp(value, "1"))) {
        if (!strncasecmp("http://", url, 7)) {
            size_t len = strlen(url);
            if (len >= 5 && !strcasecmp(".m3u8", &url[len - 5])) {
+2 −2
Original line number Diff line number Diff line
@@ -158,8 +158,8 @@ void LiveSession::onConnect(const sp<AMessage> &msg) {
        mBandwidthItems.sort(SortByBandwidth);

        char value[PROPERTY_VALUE_MAX];
        if (!property_get("media.httplive.enable-nuplayer", value, NULL)
                || (strcasecmp(value, "true") && strcmp(value, "1"))) {
        if (property_get("media.httplive.disable-nuplayer", value, NULL)
                && (!strcasecmp(value, "true") || !strcmp(value, "1"))) {
            // The "legacy" player cannot deal with audio format changes,
            // some streams use different audio encoding parameters for
            // their lowest bandwidth stream.