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

Commit 42818cca authored by Jeff Tinker's avatar Jeff Tinker Committed by Android Git Automerger
Browse files

am 9f932418: Merge "Fix for apps that forget to use widevine:// urls" into lmp-mr1-dev

* commit '9f932418':
  Fix for apps that forget to use widevine:// urls
parents 06f99521 9f932418
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);
                  }
                }
            }
        }
    }