-
Notifications
You must be signed in to change notification settings - Fork 133
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
[Proposal] scte214 - use supplemental codec instead of base codec if it's supported #1307
Merged
Merged
Changes from 17 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
7d1ecef
parse supplemental codec
Florent-Bouisset 85b5941
add a property isSupplementalCoded supported and update getMimeType
Florent-Bouisset 09e1d03
add documentation for isSupplementalCodecSupported property
Florent-Bouisset 6c67e53
parse supplementalCodec in the adaptation set
Florent-Bouisset e7d22a6
return the codec that will be played if both supplemental codec is su…
Florent-Bouisset c5cb8c7
parse multiple supplemental codec separated by white space
Florent-Bouisset c57acb9
avoid unecessary call to iseCodecSupported if supplementalCodec is true
Florent-Bouisset d14148b
remove test file that shouldn't have been add
Florent-Bouisset 2d56d1a
remplace == with isNullOrUndefined function
Florent-Bouisset 3d7d1da
update regex to match more unexpected whitespace
Florent-Bouisset 49d1a7d
code review
Florent-Bouisset 385b533
update rust WASM parser to parse supplementalCodecs
Florent-Bouisset 7bdef9d
doc: update rfc number that obsoletes rfc4281
Florent-Bouisset 9010407
move codec converting logic in "common" to convert from any parser
Florent-Bouisset a02d3df
code review
Florent-Bouisset 0a694d7
set the codec to supplementalCodec if supported and remove supplement…
Florent-Bouisset be795bc
handle case for subtitle
Florent-Bouisset b16c914
move code to another folder
Florent-Bouisset 435033d
reset unchanged file
Florent-Bouisset 99d3a3f
remove staged file
Florent-Bouisset File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
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
37 changes: 37 additions & 0 deletions
37
src/parsers/manifest/dash/common/indexes/__tests__/utils.test.ts
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,37 @@ | ||
import { convertSupplementalCodecsToRFC6381 } from "../utils"; | ||
|
||
describe("parseSupplementalCodec", () => { | ||
it("should return the codec unchanged if there is only one codec", () => { | ||
expect(convertSupplementalCodecsToRFC6381("avc1.4d400d")) | ||
.toEqual("avc1.4d400d"); | ||
}); | ||
it("should trim starting and ending whitespace", () => { | ||
expect( | ||
convertSupplementalCodecsToRFC6381(" avc1.4d400d ")) | ||
.toEqual("avc1.4d400d"); | ||
}); | ||
it("should return comma-separated list if input is whitespace-separated", () => { | ||
expect( | ||
convertSupplementalCodecsToRFC6381("avc1.4d400d avc1.4d4015")) | ||
.toEqual("avc1.4d400d, avc1.4d4015"); | ||
}); | ||
it("should return comma-separated value if input is already comma-separated", () => { | ||
expect( | ||
convertSupplementalCodecsToRFC6381("avc1.4d400d, avc1.4d4015")) | ||
.toEqual("avc1.4d400d, avc1.4d4015"); | ||
}); | ||
|
||
it("should return comma-separated value if input as missplaced whitespace", () => { | ||
expect( | ||
convertSupplementalCodecsToRFC6381("avc1.4d400d , avc1.4d4015 ")) | ||
.toEqual("avc1.4d400d, avc1.4d4015"); | ||
}); | ||
|
||
it(`should return comma-separated value if input is mix of comma and | ||
whitespace separated list` | ||
, () => { | ||
expect( | ||
convertSupplementalCodecsToRFC6381("avc1.4d400d avc1.4d4015, avc1.4d401f")) | ||
.toEqual("avc1.4d400d, avc1.4d4015, avc1.4d401f"); | ||
}); | ||
}); |
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Nice, just the
indexes
directory is normally only for what we call the segment "index" here, which the way segments are announced in the MPD.So that's probably not the right place for this util