Skip to content

Commit 76f3ede

Browse files
jasonzhangxxanonymous1-me
authored andcommitted
android: use l1 drm system when secure pipeline is required (#9231)
Use widevine l1 instead of l3, which is necessary to create secure pipeline, so that secured MediaCodec can be created properly. Bug: 485905052 (cherry picked from commit 2f5b465)
1 parent fc66316 commit 76f3ede

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

starboard/android/shared/video_decoder.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,10 @@ VideoDecoder::VideoDecoder(const VideoStreamInfo& video_stream_info,
417417
if (force_secure_pipeline_under_tunnel_mode) {
418418
SB_DCHECK_NE(tunnel_mode_audio_session_id_, -1);
419419
SB_DCHECK(!drm_system_);
420+
// To create secure pipeline for tunnel mode, we need use
421+
// L1("com.widevine.alpha").
420422
drm_system_to_enforce_tunnel_mode_ = std::make_unique<DrmSystem>(
421-
"com.youtube.widevine.l3", nullptr, StubDrmSessionUpdateRequestFunc,
423+
"com.widevine.alpha", nullptr, StubDrmSessionUpdateRequestFunc,
422424
StubDrmSessionUpdatedFunc, StubDrmSessionKeyStatusesChangedFunc);
423425
drm_system_ = drm_system_to_enforce_tunnel_mode_.get();
424426
}

0 commit comments

Comments
 (0)