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

Commit 5bb9a674 authored by Pradosh Das's avatar Pradosh Das
Browse files

Revert "frameworks/av: Integrate STAProxy for NuPlayer httpstreaming"

This reverts commit 1b8d64c9.

Change-Id: I14bcb4152f895f6de1125209469900b102171c62
parent e303a47e
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -47,7 +47,6 @@

#include "ESDS.h"
#include <media/stagefright/Utils.h>
#include "ExtendedUtils.h"

namespace android {

@@ -240,21 +239,6 @@ void NuPlayer::setDataSourceAsync(
        source = new RTSPSource(
                notify, httpService, url, headers, mUIDValid, mUID, true);
    } else {
        // Set Proxy for progressive download usecase
        if (headers) {
            KeyedVector<String8, String8> mUriHeaders = *headers;
            int32_t port;
            if (ExtendedUtils::ShellProp::getSTAProxyConfig(port)) {
                String8 portString = String8("127.0.0.1");
                portString.appendFormat(":%d",port);
                ALOGV("getSTAProxyConfig Proxy IPportString %s", portString.string());
                mUriHeaders.add(String8("use-proxy"), portString);
            } else {
                ALOGE("getSTAProxyConfig failed or disabled");
            }
        } else {
            ALOGE("Not try to set proxy as headers are NULL");
        }
        sp<GenericSource> genericSource =
                new GenericSource(notify, mUIDValid, mUID);
        // Don't set FLAG_SECURE on mSourceFlags here for widevine.