Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit bb2a25b

Browse files
committed
KeySystemWidevine: bug fix in case of no audio when setting audio robustness rules
1 parent c0286e1 commit bb2a25b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/js/streaming/protection/drm/KeySystem_Widevine.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ MediaPlayer.dependencies.protection.KeySystem_Widevine = function() {
4949
doGetKeySystemConfigurations = function(videoCodec, audioCodec, sessionType) {
5050
var ksConfigurations = MediaPlayer.dependencies.protection.CommonEncryption.getKeySystemConfigurations(videoCodec, audioCodec, sessionType);
5151
if (protData) {
52-
if (protData.audioRobustness) {
52+
if (protData.audioRobustness && ksConfigurations[0].audioCapabilities.length > 0) {
5353
ksConfigurations[0].audioCapabilities[0].robustness = protData.audioRobustness;
5454
}
55-
if (protData.videoRobustness) {
55+
if (protData.videoRobustness && ksConfigurations[0].videoCapabilities.length > 0) {
5656
ksConfigurations[0].videoCapabilities[0].robustness = protData.videoRobustness;
5757
}
5858
}

0 commit comments

Comments
 (0)