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

Commit 9f932418 authored by Jeff Tinker's avatar Jeff Tinker Committed by Android (Google) Code Review
Browse files

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

parents 2aa82e78 661a5270
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);
                  }
                }
            }
        }
    }