Skip to content

Commit

Permalink
fix(MCap): Remove robustness when robustness value is default
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Jan 31, 2023
1 parent b441518 commit cdd6c81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util/stream_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ shaka.util.StreamUtils = class {
keySystemConfig.sessionTypes = [info.sessionType];
}

if (audio) {
if (audio && info.audioRobustness != '') {
if (!keySystemConfig.audio) {
// KeySystemTrackConfiguration
keySystemConfig.audio = {
Expand All @@ -779,7 +779,7 @@ shaka.util.StreamUtils = class {
}
}

if (video) {
if (video && info.videoRobustness != '') {
if (!keySystemConfig.video) {
// KeySystemTrackConfiguration
keySystemConfig.video = {
Expand Down

0 comments on commit cdd6c81

Please sign in to comment.