-
Notifications
You must be signed in to change notification settings - Fork 125
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
fix extraction of codecs from smooth streaming manifest #28
Conversation
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); |
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.
- the attribute is
codecs
(plural) - this attribute should only exist for audio or video adaptations
@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) { |
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.
nitpick: (type == "video" || type == "audio")
should be sufficient here
I have separated audio and video codecs extraction but in audio we need to check fourCC value because of AACH |
LGTM. Will merge today. |
rebased and squased as d9529db. Thanks @lukaszzdanikowski, much appreciated. |
fixes #27