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
This commit is contained in:
Andreas Huber
2011-01-06 14:14:56 -08:00
parent 1932fef94a
commit d7069ca0bc
2 changed files with 4 additions and 4 deletions

View File

@@ -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])) {

View File

@@ -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.