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

Commit 67aee053 authored by Andreas Huber's avatar Andreas Huber
Browse files

Use stagefright for http streaming if the right property is set.

parent 57d2c3ad
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -721,10 +721,14 @@ player_type getPlayerType(const char* url)
    }

    if (!strncasecmp(url, "http://", 7)) {
        // For now, we're going to use PV for http-based playback,
        // until we can clear up a few more issues.
        char value[PROPERTY_VALUE_MAX];
        if (!property_get("media.stagefright.enable-http", value, NULL)
            || (strcmp(value, "1") && strcasecmp(value, "true"))) {
            // For now, we're going to use PV for http-based playback
            // by default until we can clear up a few more issues.
            return PV_PLAYER;
        }
    }

    return getDefaultPlayerType();
}