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

Commit 661a5270 authored by Jeff Tinker's avatar Jeff Tinker
Browse files

Fix for apps that forget to use widevine:// urls

bug: 18554455

Change-Id: I8ff08e7270c65c375205169eb068f361f2a4a727
parent 8cffa91a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -173,6 +173,14 @@ status_t NuPlayer::GenericSource::initFromDataSource() {
            if (mFileMeta->findCString(kKeyMIMEType, &fileMime)
                    && !strncasecmp(fileMime, "video/wvm", 9)) {
                mIsWidevine = true;
                if (!mUri.empty()) {
                  // streaming, but the app forgot to specify widevine:// url
                  mWVMExtractor = static_cast<WVMExtractor *>(extractor.get());
                  mWVMExtractor->setAdaptiveStreamingMode(true);
                  if (mUIDValid) {
                    mWVMExtractor->setUID(mUID);
                  }
                }
            }
        }
    }