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

Issue 882993002: Implement automatic text track selection for 'metadata' tracks (Closed)

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

Description

Implement automatic text track selection for 'metadata' tracks Previously 'metadata' tracks were being configured using the "perform automatic text track selection" algorithm from the the spec, while it should only have applied step 4 of the "honor user preferences for automatic text track selection" algorithm. BUG=251254 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189185

Patch Set 1 #

Total comments: 9

Patch Set 2 : Test touch-up. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -1 line) Patch
A LayoutTests/media/track/track-selection-metadata.html View 1 1 chunk +32 lines, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 2 chunks +20 lines, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
fs
5 years, 10 months ago (2015-01-28 15:43:30 UTC) #2
philipj_slow
lgtm with nits https://codereview.chromium.org/882993002/diff/1/LayoutTests/media/track/track-selection-metadata.html File LayoutTests/media/track/track-selection-metadata.html (right): https://codereview.chromium.org/882993002/diff/1/LayoutTests/media/track/track-selection-metadata.html#newcode9 LayoutTests/media/track/track-selection-metadata.html:9: video.onloadstart = test.step_func(function() { To be ...
5 years, 10 months ago (2015-01-29 10:34:52 UTC) #3
fs
https://codereview.chromium.org/882993002/diff/1/LayoutTests/media/track/track-selection-metadata.html File LayoutTests/media/track/track-selection-metadata.html (right): https://codereview.chromium.org/882993002/diff/1/LayoutTests/media/track/track-selection-metadata.html#newcode9 LayoutTests/media/track/track-selection-metadata.html:9: video.onloadstart = test.step_func(function() { On 2015/01/29 10:34:52, philipj_UTC7 wrote: ...
5 years, 10 months ago (2015-01-29 12:05:51 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/882993002/20001
5 years, 10 months ago (2015-01-29 12:59:01 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://src.chromium.org/viewvc/blink?view=rev&revision=189185
5 years, 10 months ago (2015-01-29 13:20:22 UTC) #7
philipj_slow
https://codereview.chromium.org/882993002/diff/1/LayoutTests/media/track/track-selection-metadata.html File LayoutTests/media/track/track-selection-metadata.html (right): https://codereview.chromium.org/882993002/diff/1/LayoutTests/media/track/track-selection-metadata.html#newcode9 LayoutTests/media/track/track-selection-metadata.html:9: video.onloadstart = test.step_func(function() { On 2015/01/29 12:05:51, fs wrote: ...
5 years, 10 months ago (2015-01-29 14:58:04 UTC) #8
fs
5 years, 10 months ago (2015-01-29 15:06:52 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/882993002/diff/1/LayoutTests/media/track/trac...
File LayoutTests/media/track/track-selection-metadata.html (right):

https://codereview.chromium.org/882993002/diff/1/LayoutTests/media/track/trac...
LayoutTests/media/track/track-selection-metadata.html:9: video.onloadstart =
test.step_func(function() {
On 2015/01/29 14:58:04, philipj_UTC7 wrote:
> On 2015/01/29 12:05:51, fs wrote:
> > On 2015/01/29 10:34:52, philipj_UTC7 wrote:
> > > To be less forgiving, do this immediately after </video> as that's the
> > per-spec
> > > trigger for "honor user preferences for automatic text track selection".
If
> > you
> > > don't need a video.currentSrc for the test to pass, remove that. I does
not
> > seem
> > > required per spec.
> > 
> > I've moved it. The selection is not run synchronously at </video>, so it
> becomes
> > a bit hard to observe it in a good and stable manner (hence the src). Quite
> > possible that should be fixed...
> >  
> > > If you move it, you can also use the async_test(function(test) {})
pattern,
> > > which I like if there's nothing special going on.
> > 
> > Done.
> 
> Sounds like the automatic selection is triggered later then required by the
> spec, then.

Yes, this had me scratching my head for quite some time (I originally had a
test() just after </video>.)

Powered by Google App Engine
This is Rietveld 408576698