-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1202 from canalplus/feat/getKeySystemConfiguration
Add the `getKeySystemConfiguration` method to the RxPlayer
- Loading branch information
Showing
11 changed files
with
167 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# getKeySystemConfiguration | ||
|
||
## Description | ||
|
||
Returns information on the key system configuration currently associated to the | ||
HTMLMediaElement (e.g. `<video>` element) linked to the RxPlayer. | ||
|
||
The returned value might be null if no key system configuration is attached or | ||
if it is unknown, or, if a key system is attached and known, an object with the | ||
following properties: | ||
|
||
- `keySystem` (`string`): The actual key system string of the key system | ||
currently used. | ||
|
||
Note that it may be different than the key system name used as `type` | ||
property of the `keySystems` `loadVideo` option originally communicated. | ||
|
||
For example, calling the `loadVideo` like this: | ||
```js | ||
rxPlayer.loadVideo({ | ||
keySystems: [{ | ||
type: "widevine", | ||
// ... | ||
}], | ||
// ... | ||
}); | ||
``` | ||
May lead to `keySystem` being set to `"com.widevine.alpha"` instead on most | ||
platforms where it is its proper denomination. | ||
|
||
- `configuration` (`Object`): The | ||
[`MediaKeySystemConfiguration`](https://www.w3.org/TR/encrypted-media/#dom-mediakeysystemconfiguration) | ||
actually used currently by the key system. | ||
|
||
You may parse that configuration to deduce for example the current | ||
robustness levels of the key system. | ||
|
||
|
||
## Syntax | ||
|
||
```js | ||
const values = player.getKeySystemConfiguration(); | ||
``` | ||
|
||
- **return value** `Object|null` |
6 changes: 6 additions & 0 deletions
6
...ontent_Information/getCurrentKeySystem.md → doc/api/Deprecated/getCurrentKeySystem.md
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
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