Commit 6ffa8e2f by Thuc Nguyen

Fix "setMediaDrmSession failed: session not opened" when next between WV and ClearKey MediaItem

Exception when next or prev between MediaItem Widevine and ClearKey
parent ab4d37f4
......@@ -2073,6 +2073,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
}
// Note: Both oldSession and newSession are non-null, and they are different sessions.
if(!newSession.getSchemeUuid().equals(oldSession.getSchemeUuid())) return true;
if (Util.SDK_INT < 23) {
// MediaCrypto.setMediaDrmSession is only available from API level 23, so re-initialization is
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment