Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Issue 319213002: Fix MediaSource.duration setter behavior to match the current spec. (Closed)

Created:
6 years, 6 months ago by acolwell GONE FROM CHROMIUM
Modified:
6 years, 6 months ago
Reviewers:
philipj_slow
CC:
blink-reviews, blink-reviews-html_chromium.org, philipj_slow, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, nessy, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fix MediaSource.duration setter behavior to match the current spec. This change fixes non-compliant MSE behavior when the duration is set to a smaller value. The spec calls for remove() to get called in this case which wasn't happening before. This causes SourceBuffer.updating to become true which prevents other operations like endOfStream() from being allowed until the remove completes. Tests that relied on this broken behavior have been updated. BUG=381302 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176373

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 19

Patch Set 3 : Rebase #

Patch Set 4 : Address most CR comments. #

Patch Set 5 : Rebased and removed SeekSkipPermission enum #

Patch Set 6 : Address CR comment. #

Patch Set 7 : Fix release build buster #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -35 lines) Patch
M LayoutTests/http/tests/media/media-source/mediasource-config-changes.js View 1 chunk +11 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/media/media-source/mediasource-duration.html View 2 chunks +17 lines, -10 lines 0 comments Download
M LayoutTests/http/tests/media/media-source/mediasource-getvideoplaybackquality.html View 1 2 3 1 chunk +33 lines, -12 lines 0 comments Download
M LayoutTests/http/tests/media/media-source/mediasource-play.html View 1 chunk +20 lines, -4 lines 0 comments Download
M LayoutTests/http/tests/media/media-source/mediasource-remove.html View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/media/media-source/mediasource-remove-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 5 6 3 chunks +11 lines, -4 lines 0 comments Download
M Source/modules/mediasource/MediaSource.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M Source/modules/mediasource/MediaSource.cpp View 1 2 1 chunk +31 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/319213002/diff/20001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/319213002/diff/20001/Source/core/html/HTMLMediaElement.cpp#newcode2843 Source/core/html/HTMLMediaElement.cpp:2843: SeekSkipPermission seekSkip = (duration < oldDuration) ? SkipNotAllowed : ...
6 years, 6 months ago (2014-06-06 23:20:05 UTC) #1
acolwell GONE FROM CHROMIUM
6 years, 6 months ago (2014-06-06 23:20:17 UTC) #2
adamk
Sorry, I don't think I'm going to be able to get to this before I ...
6 years, 6 months ago (2014-06-07 17:46:59 UTC) #3
acolwell GONE FROM CHROMIUM
On 2014/06/07 17:46:59, adamk (ooo until june 16) wrote: > Sorry, I don't think I'm ...
6 years, 6 months ago (2014-06-09 17:19:29 UTC) #4
acolwell GONE FROM CHROMIUM
philipj: ping. PTAL
6 years, 6 months ago (2014-06-13 17:02:23 UTC) #5
philipj_slow
LGTM with nits and discussio that doesn't need to block landing. Sorry for the delay, ...
6 years, 6 months ago (2014-06-16 13:26:19 UTC) #6
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/319213002/diff/20001/LayoutTests/http/tests/media/media-source/mediasource-remove.html File LayoutTests/http/tests/media/media-source/mediasource-remove.html (right): https://codereview.chromium.org/319213002/diff/20001/LayoutTests/http/tests/media/media-source/mediasource-remove.html#newcode142 LayoutTests/http/tests/media/media-source/mediasource-remove.html:142: mediaSource.duration = 10; On 2014/06/16 13:26:19, philipj wrote: > ...
6 years, 6 months ago (2014-06-17 01:24:02 UTC) #7
philipj_slow
https://codereview.chromium.org/319213002/diff/20001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/319213002/diff/20001/Source/core/html/HTMLMediaElement.cpp#newcode1814 Source/core/html/HTMLMediaElement.cpp:1814: || (seekSkip == SkipAllowed && time == now && ...
6 years, 6 months ago (2014-06-17 11:59:07 UTC) #8
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/319213002/diff/20001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/319213002/diff/20001/Source/core/html/HTMLMediaElement.cpp#newcode1814 Source/core/html/HTMLMediaElement.cpp:1814: || (seekSkip == SkipAllowed && time == now && ...
6 years, 6 months ago (2014-06-17 22:39:02 UTC) #9
acolwell GONE FROM CHROMIUM
The CQ bit was checked by acolwell@chromium.org
6 years, 6 months ago (2014-06-17 22:39:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acolwell@chromium.org/319213002/100001
6 years, 6 months ago (2014-06-17 22:39:53 UTC) #11
acolwell GONE FROM CHROMIUM
The CQ bit was checked by acolwell@chromium.org
6 years, 6 months ago (2014-06-17 23:13:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acolwell@chromium.org/319213002/120001
6 years, 6 months ago (2014-06-17 23:13:58 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-06-18 01:25:32 UTC) #14
Message was sent while issue was closed.
Change committed as 176373

Powered by Google App Engine
This is Rietveld 408576698