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

Issue 898883003: Fixes play seek when user sets loop after ended. (Closed)

Created:
5 years, 10 months ago by chcunningham
Modified:
5 years, 10 months ago
Reviewers:
philipj_slow, fs, wolenetz
CC:
blink-reviews, nessy, gasubic, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, blink-reviews-html_chromium.org, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Calling/clicking play on an ended media element should always cause a seek back to the start. This fixes a edge case where the seek-to-start did not occur if the loop attribute had been set after playback had ended. BUG=364442 TEST=media/video-loop.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190181

Patch Set 1 : Initial commit #

Patch Set 2 : Minor cleanup #

Total comments: 31

Patch Set 3 : Responding to feedback #

Total comments: 4

Patch Set 4 : Responding to feedback #2 #

Total comments: 16

Patch Set 5 : Responding to feedback #3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -5 lines) Patch
A LayoutTests/media/video-loop-from-ended.html View 1 2 3 4 1 chunk +87 lines, -0 lines 0 comments Download
A LayoutTests/media/video-loop-from-ended-expected.txt View 1 2 3 4 1 chunk +49 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
chcunningham
Hey Guys, Simple change to fix bug where user sets loop after playback ends and ...
5 years, 10 months ago (2015-02-12 19:36:15 UTC) #2
wolenetz
Thanks for working on this, Chris. Other than a bunch of minor nits, and a ...
5 years, 10 months ago (2015-02-12 22:12:27 UTC) #3
wolenetz
On 2015/02/12 22:12:27, wolenetz wrote: > Also nit: Insert T=media/video-loop.html next to the B= line ...
5 years, 10 months ago (2015-02-12 22:13:37 UTC) #4
chcunningham
Thanks Matt https://codereview.chromium.org/898883003/diff/20001/LayoutTests/media/video-loop.html File LayoutTests/media/video-loop.html (right): https://codereview.chromium.org/898883003/diff/20001/LayoutTests/media/video-loop.html#newcode57 LayoutTests/media/video-loop.html:57: consoleWrite("<br><em>++ third seek completed, unset loop and ...
5 years, 10 months ago (2015-02-13 03:37:29 UTC) #5
fs
LGTM w/ a few nits (Philip is OOO for the [extended] weekend just so you ...
5 years, 10 months ago (2015-02-13 11:49:23 UTC) #7
fs
On 2015/02/13 11:49:23, fs wrote: > ... ...and I forgot: A slightly longer commit message ...
5 years, 10 months ago (2015-02-13 11:54:13 UTC) #8
wolenetz
lgtm % fs's comments and below. I agree overloading of video-loop.html for this additional edge ...
5 years, 10 months ago (2015-02-13 22:24:24 UTC) #9
chcunningham
Thanks both! https://codereview.chromium.org/898883003/diff/20001/LayoutTests/media/video-loop.html File LayoutTests/media/video-loop.html (right): https://codereview.chromium.org/898883003/diff/20001/LayoutTests/media/video-loop.html#newcode89 LayoutTests/media/video-loop.html:89: // Testing edge case where we set ...
5 years, 10 months ago (2015-02-13 23:01:43 UTC) #11
wolenetz
Thanks! lgtm2 % nits: https://codereview.chromium.org/898883003/diff/60001/LayoutTests/media/video-loop-from-ended-expected.txt File LayoutTests/media/video-loop-from-ended-expected.txt (right): https://codereview.chromium.org/898883003/diff/60001/LayoutTests/media/video-loop-from-ended-expected.txt#newcode1 LayoutTests/media/video-loop-from-ended-expected.txt:1: Test looping edge case to ...
5 years, 10 months ago (2015-02-13 23:47:46 UTC) #12
chcunningham
Thanks Matt. Enabled the trim spaces setting going fwd. https://codereview.chromium.org/898883003/diff/60001/LayoutTests/media/video-loop-from-ended-expected.txt File LayoutTests/media/video-loop-from-ended-expected.txt (right): https://codereview.chromium.org/898883003/diff/60001/LayoutTests/media/video-loop-from-ended-expected.txt#newcode1 LayoutTests/media/video-loop-from-ended-expected.txt:1: ...
5 years, 10 months ago (2015-02-14 02:47:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/898883003/80001
5 years, 10 months ago (2015-02-14 03:07:31 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://src.chromium.org/viewvc/blink?view=rev&revision=190181
5 years, 10 months ago (2015-02-14 04:24:13 UTC) #16
philipj_slow
5 years, 10 months ago (2015-02-16 04:40:41 UTC) #17
Message was sent while issue was closed.
The fix looks good, but AFAICT this was implemented per spec, so I've filed a
spec bug:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28032

Powered by Google App Engine
This is Rietveld 408576698