forked from shaka-project/shaka-player
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(demo): Add MIME type and extra config to custom assets
This allows content like that found in shaka-project#3366 to be configured in the custom assets tab of the demo app. For example, to play src=+WebM+ClearKey, you could set: 1. Manifest URL to a WebM file 2. MIME type to 'video/webm; codecs="vp9"' 3. Extra config to something like: { "drm": { "clearKeys": { "deadbeefdeadbeefdeadbeefdeadbeef": "deadbeefdeadbeefdeadbeefdeadbeef" } } } This would set up Shaka Player to play a single DRM'd WebM file with ClearKey decryption. The new "extra config" section of the custom asset dialog is powerful enough to allow you to configure any arbitrary Shaka Player setting that can be represented in JSON. (So no callbacks.) This was already possible for the assets hard-coded in demo/common/assets.js, but having that available in custom assets will make manual testing of private content significantly easier. Change-Id: I889839ee0d15131a61c215a2f7c09f7715572bd1
- Loading branch information
1 parent
6c528c8
commit 24d10ed
Showing
9 changed files
with
187 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.