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

Deal with OOB key ids #212

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

onotole
Copy link
Contributor

@onotole onotole commented Dec 20, 2017

No description provided.

@@ -167,7 +167,7 @@ Mss.dependencies.MssParser = function() {
// Check if codec is supported
if (SUPPORTED_CODECS.indexOf(fourCCValue.toUpperCase()) === -1) {
// Do not send warning
//this.errHandler.sendWarning(MediaPlayer.dependencies.ErrorHandler.prototype.MEDIA_ERR_CODEC_UNSUPPORTED, "Codec/FourCC not supported", {codec: fourCCValue});
this.errHandler.sendWarning(MediaPlayer.dependencies.ErrorHandler.prototype.MEDIA_ERR_CODEC_UNSUPPORTED, "Codec/FourCC not supported", {codec: fourCCValue});
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This not related with this PR. BTW we should remove this warning. We already put a warning in the console.

@@ -386,13 +386,16 @@ Mss.dependencies.MssParser = function() {

// Parse <WRMHeader> to get KID field value
xmlReader = (new DOMParser()).parseFromString(wrmHeader, "application/xml");
KID = xmlReader.querySelector("KID").textContent;
var kidNode = xmlReader.querySelector("KID");
if (kidNode) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In which use case you do not have KID in the ProtectionHeader?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants