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

Commit 4e69ad15 authored by Wei Jia's avatar Wei Jia
Browse files

MediaPlayer2: allow JAVA on HLS loopers

Test: StreamingMediaPlayer2Test pass
Bug: 63934228
Change-Id: Ic66df9cd8812897aa4213c49591f3b5c56c3949d
parent fddc1453
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -103,7 +103,8 @@ void NuPlayer2::HTTPLiveSource::prepareAsync() {
    if (mLiveLooper == NULL) {
        mLiveLooper = new ALooper;
        mLiveLooper->setName("http live");
        mLiveLooper->start();
        mLiveLooper->start(false, /* runOnCallingThread */
                           true /* canCallJava */);

        mLiveLooper->registerHandler(this);
    }
+2 −1
Original line number Diff line number Diff line
@@ -1014,7 +1014,8 @@ void LiveSession::onConnect(const sp<AMessage> &msg) {
        mFetcherLooper = new ALooper();

        mFetcherLooper->setName("Fetcher");
        mFetcherLooper->start(false, false);
        mFetcherLooper->start(false, /* runOnCallingThread */
                              true  /* canCallJava */);
    }

    // create fetcher to fetch the master playlist