Skip to content
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

fix extraction of codecs from smooth streaming manifest #28

Conversation

lukaszzdanikowski
Copy link
Contributor

fixes #27

@jinroh
Copy link
Contributor

jinroh commented Mar 16, 2016

looks much better ! will test it on some of our production stream.

@@ -193,6 +203,7 @@ function createSmoothStreamingParser(parserOptions={}) {
? parse(q.getAttribute(key))
: parse[q.getAttribute(key)];
}
obj["codec"] = extractCodec(q.getAttribute("FourCC") || "", obj);
Copy link
Contributor

Choose a reason for hiding this comment

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

  • the attribute is codecs (plural)
  • this attribute should only exist for audio or video adaptations

@lukaszzdanikowski
Copy link
Contributor Author

@jinroh sorry for those silly mistakes, should be ok now.

@@ -217,7 +231,10 @@ function createSmoothStreamingParser(parserOptions={}) {
switch (name) {
case "QualityLevel":
const rep = parseQualityLevel(node, profile);

if (["video", "audio"].indexOf(type) >= 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: (type == "video" || type == "audio") should be sufficient here

@lukaszzdanikowski
Copy link
Contributor Author

I have separated audio and video codecs extraction but in audio we need to check fourCC value because of AACH

@jinroh
Copy link
Contributor

jinroh commented Mar 17, 2016

LGTM. Will merge today.

@jinroh
Copy link
Contributor

jinroh commented Mar 17, 2016

rebased and squased as d9529db.

Thanks @lukaszzdanikowski, much appreciated.

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

Successfully merging this pull request may close these issues.

Error while trying to play microsoft smooth streaming test content
2 participants