-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add support for multiple robustness levels in drm #7753
Conversation
Incremental code coverage: 94.15% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please review unit tests
demo/main.js
Outdated
@@ -949,10 +949,10 @@ shakaDemo.Main = class { | |||
advanced[drmSystem] = shakaDemo.Main.defaultAdvancedDrmConfig(); | |||
} | |||
if ('videoRobustness' in params) { | |||
advanced[drmSystem].videoRobustness = params['videoRobustness']; | |||
advanced[drmSystem].videoRobustness = [params['videoRobustness']]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the Demo in order to support an array (using ,). See preferredVideoCodecs as example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
demo/main.js
Outdated
} | ||
} | ||
|
||
this.configure('drm.advanced', advanced); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
without this, it would read the advanced settings from the hash, but it would never actually set it back on the player.
@gkatsev can you rebase your PR? Thanks! |
Co-authored-by: Wojciech Tyczyński <tykus160@gmail.com>
ccfa1c4
to
f4c5db1
Compare
This changes the
drm.advanced.videoRobustness
andaudioRobustness
config options from a string to an array of strings. Internally, in the drm engine, this gets expanded into an array ofDrmInfos
which have those values as strings.Best way to review this change is with whitespace turned off in the diff options.