Closed
Bug 1230026
Opened 10 years ago
Closed 10 years ago
[EME] Support 'webm' initDataType format for ClearKey initData in MP4
Categories
(Core :: Audio/Video: Playback, defect)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: cpearce, Assigned: cpearce)
References
Details
Attachments
(2 files)
Google's shaka-player uses 'webm' initData format for its MP4 content. It's trivial to add support for this initData format.
And note that the initData format is independent of the underlying stream type. So it's valid to provide 'webm' initData for an MP4 stream, though you won't be getting the initData out of the MP4 file's PSSH of course, you'll be getting it out-of-band somehow.
Assignee | ||
Comment 1•10 years ago
|
||
Bug 1230026 - Support 'webm' initDataType format for MP4 ClearKey initData. r?gerald
Attachment #8695101 -
Flags: review?(gsquelart)
Comment on attachment 8695101 [details]
MozReview Request: Bug 1230026 - Support 'webm' initDataType format for MP4 ClearKey initData. r=gerald
https://reviewboard.mozilla.org/r/27011/#review24405
Looks correct. Just wondering about the magic value:
::: media/gmp-clearkey/0.1/ClearKeySession.cpp:72
(Diff revision 1)
> + } else if (aInitDataType == "webm" && aInitDataSize == 16) {
Why 16?
Attachment #8695101 -
Flags: review?(gsquelart) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Comment on attachment 8695101 [details]
MozReview Request: Bug 1230026 - Support 'webm' initDataType format for MP4 ClearKey initData. r=gerald
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/27011/diff/1-2/
Attachment #8695101 -
Attachment description: MozReview Request: Bug 1230026 - Support 'webm' initDataType format for MP4 ClearKey initData. r?gerald → MozReview Request: Bug 1230026 - Support 'webm' initDataType format for MP4 ClearKey initData. r=gerald
Assignee | ||
Comment 4•10 years ago
|
||
Bug 1230026 - Add test for 'webm' initDataType for ClearKey initData. r?gerald
Attachment #8695118 -
Flags: review?(gsquelart)
(In reply to Chris Pearce (:cpearce) from comment #3)
> Comment on attachment 8695101 [details]
> MozReview Request: Bug 1230026 - Support 'webm' initDataType format for MP4
> ClearKey initData. r=gerald
>
> Review request updated; see interdiff:
> https://reviewboard.mozilla.org/r/27011/diff/1-2/
The interdiff looks empty... Is that just because you've added the test?
Comment on attachment 8695118 [details]
MozReview Request: Bug 1230026 - Add test for 'webm' initDataType for ClearKey initData. r?gerald
https://reviewboard.mozilla.org/r/27017/#review24407
Attachment #8695118 -
Flags: review?(gsquelart) → review+
Assignee | ||
Comment 8•10 years ago
|
||
(In reply to Gerald Squelart [:gerald] from comment #2)
> Comment on attachment 8695101 [details]
> MozReview Request: Bug 1230026 - Support 'webm' initDataType format for MP4
> ClearKey initData. r=gerald
>
> https://reviewboard.mozilla.org/r/27011/#review24405
>
> Looks correct. Just wondering about the magic value:
>
> ::: media/gmp-clearkey/0.1/ClearKeySession.cpp:72
> (Diff revision 1)
> > + } else if (aInitDataType == "webm" && aInitDataSize == 16) {
>
> Why 16?
That's the size of a CENC-CTR128 keyId. 128 bits = 16 bytes.
(In reply to Gerald Squelart [:gerald] from comment #5)
> (In reply to Chris Pearce (:cpearce) from comment #3)
> > Comment on attachment 8695101 [details]
> > MozReview Request: Bug 1230026 - Support 'webm' initDataType format for MP4
> > ClearKey initData. r=gerald
> >
> > Review request updated; see interdiff:
> > https://reviewboard.mozilla.org/r/27011/diff/1-2/
>
Yeah... Still learning how to drive this reviewboard thing...
> The interdiff looks empty... Is that just because you've added the test?
Comment 9•10 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/fd69513f86b7
https://hg.mozilla.org/mozilla-central/rev/a8b4b4cdab7b
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in
before you can comment on or make changes to this bug.
Description
•