Details
- Reviewers
karlt - Group Reviewers
media-playback-reviewers - Commits
- rMOZILLACENTRALc7bfb1e800e2: Bug 1900191 - use default duration if exists. r=media-playback-reviewers,karlt…
rMOZILLACENTRAL0df88b058abe: Bug 1900191 - use default duration if exists. r=media-playback-reviewers,karlt…
rMOZILLACENTRAL51c72e671bce: Bug 1900191 - use default duration if exists. r=media-playback-reviewers,karlt
rMOZILLACENTRAL1ebafa5c7395: Bug 1900191 - use default duration if exists. r=media-playback-reviewers,karlt - Bugzilla Bug ID
- 1900191
Diff Detail
- Repository
- rMOZILLACENTRAL mozilla-central
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Using DefaultDuration is what the spec implies and is more consistent with what Chromium is doing, so I agree with what this is doing, thanks.
I'm not familiar with how easy it might be to create a webm file for testing.
https://phabricator.services.mozilla.com/D156677 added some basic webm files. Have you tried at mkvtoolnix?
dom/media/webm/NesteggPacketHolder.h | ||
---|---|---|
51 | The existing code in this file is inconsistent, but comparing the result with -1 or 0 would clarify that the function does not return a bool. | |
102 | Thanks for adding this! | |
105 | t<->a | |
dom/media/webm/WebMDemuxer.cpp | ||
602 | Can defaultDuration be obtained from Context(aType), here or in ReadMetadata(). ReadMetadata() is already doing some nanosecond conversion. I can see some benefit of getting the default duration in the NesteggPacketHolder, if it were to use the default duration as a default/fallback value for Duration(). That is, if you are happy to prefer the default duration over using the previous timestamp difference. | |
624 | Any idea why next_holder->Timestamp() is preferred over holder->Duration().
Do you know why next_holder is assumed to be the next in display order? We don't need to make a change here at the same time as adding the DefaultDuration, and perhaps better if we don't, at least if this patch might be uplifted. Would be good to know why we do it this way though. | |
628–632 | defaultDuration looks a better indicator of duration than tstamp - lastFrameTime.ref(). How would you feel about preferring defaultDuration? That would be more consistent with what Chromium is doing. |
This revision requires a Testing Policy Project Tag to be set before landing. Please apply one of testing-approved, testing-exception-unchanged, testing-exception-ui, testing-exception-elsewhere, testing-exception-other. Tip: this Firefox add-on makes it easy!
I've found https://treeherder.mozilla.org/jobs?repo=try&revision=9b394cd5e201a0935b5923f2065c5e52f4855826 that is green, I'm landing this in the interest of time.