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

Issue 1074633002: Adjust video-durationchange unit test for new behavior (Closed)

Created:
5 years, 8 months ago by servolk
Modified:
5 years ago
CC:
blink-reviews, feature-media-reviews_chromium.org, eric.carlson_apple.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Adjust video-durationchange unit test for new behavior Previous change that introduced this unit test caused MSE playback regressions. So I'm making some adjustments to media element behavior at the end of stream, see this CL for details: https://codereview.chromium.org/1069253004/ After that CL we will no longer do Pipeline::SetDuration when ending playback, instead we'll rely on currentTime() being the same as media duration after WebMediaPlayerImpl detects the actual playback end event via OnPipelineEnded callback. BUG=475244

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M LayoutTests/media/video-durationchange-on-ended.html View 1 chunk +2 lines, -1 line 2 comments Download
M LayoutTests/media/video-durationchange-on-ended-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
servolk
5 years, 8 months ago (2015-04-09 00:57:45 UTC) #2
DaleCurtis
This will require a 3 sided patch unfortunately. You should just disable the blink test ...
5 years, 8 months ago (2015-04-09 01:22:31 UTC) #3
servolk
On 2015/04/09 01:22:31, DaleCurtis wrote: > This will require a 3 sided patch unfortunately. You ...
5 years, 8 months ago (2015-04-09 01:34:12 UTC) #4
wolenetz
https://codereview.chromium.org/1074633002/diff/1/LayoutTests/media/video-durationchange-on-ended.html File LayoutTests/media/video-durationchange-on-ended.html (right): https://codereview.chromium.org/1074633002/diff/1/LayoutTests/media/video-durationchange-on-ended.html#newcode25 LayoutTests/media/video-durationchange-on-ended.html:25: testExpected("video.duration <= initialReportedDuration", true); Though I understand how this ...
5 years, 8 months ago (2015-04-09 17:29:06 UTC) #5
servolk
On 2015/04/09 17:29:06, wolenetz wrote: > https://codereview.chromium.org/1074633002/diff/1/LayoutTests/media/video-durationchange-on-ended.html > File LayoutTests/media/video-durationchange-on-ended.html (right): > > https://codereview.chromium.org/1074633002/diff/1/LayoutTests/media/video-durationchange-on-ended.html#newcode25 > ...
5 years, 8 months ago (2015-04-09 17:54:03 UTC) #6
DaleCurtis
I don't think we want to add any further complexity to the demuxer, we've had ...
5 years, 8 months ago (2015-04-09 18:06:07 UTC) #7
wolenetz
On 2015/04/09 17:54:03, servolk wrote: > On 2015/04/09 17:29:06, wolenetz wrote: > > > https://codereview.chromium.org/1074633002/diff/1/LayoutTests/media/video-durationchange-on-ended.html ...
5 years, 8 months ago (2015-04-09 18:06:54 UTC) #8
wolenetz
Also, please don't forget to update the TestExpectations ;)
5 years, 8 months ago (2015-04-09 18:10:17 UTC) #9
servolk
On 2015/04/09 18:06:54, wolenetz wrote: > On 2015/04/09 17:54:03, servolk wrote: > > On 2015/04/09 ...
5 years, 8 months ago (2015-04-09 18:28:55 UTC) #10
servolk
https://codereview.chromium.org/1074633002/diff/1/LayoutTests/media/video-durationchange-on-ended.html File LayoutTests/media/video-durationchange-on-ended.html (right): https://codereview.chromium.org/1074633002/diff/1/LayoutTests/media/video-durationchange-on-ended.html#newcode25 LayoutTests/media/video-durationchange-on-ended.html:25: testExpected("video.duration <= initialReportedDuration", true); On 2015/04/09 17:29:06, wolenetz wrote: ...
5 years, 7 months ago (2015-04-29 21:31:02 UTC) #11
philipj_slow
On 2015/04/29 21:31:02, servolk wrote: > Sorry for the delay on this. Yes, your understanding ...
5 years, 7 months ago (2015-04-29 21:57:43 UTC) #12
blink-reviews
5 years, 7 months ago (2015-04-29 22:05:41 UTC) #13
See also http://code.google.com/p/chromium/issues/detail?id=475244#c6.
I'm planning to do this, but it would clash with Srirama CL
https://codereview.chromium.org/1055503002/. Let's give it a few more days
and if that CL hasn't landed by then, I guess I can go ahead and still make
the change, even if it causes some conflicts for Srirama.

On Wed, Apr 29, 2015 at 2:57 PM, <philipj@opera.com> wrote:

> On 2015/04/29 21:31:02, servolk wrote:
>
>> Sorry for the delay on this. Yes, your understanding is correct. I think
>> in
>> order to fix this properly we need to:
>> a. Have an explicit 'pipeline ended' signal from media pipeline to blink,
>> instead of having blink rely on currentTime/duration comparison to detect
>> eos
>> (crbug.com/438581)
>> b. When blink receives that 'pipeline ended' signal, it should re-check
>> the
>> stream duration and fire 'durationchanged' event if the actual duration
>> turns
>> out to be less than expected.
>>
>
> That sounds great to me, issues around this seem to keep coming up and this
> ought to be the cure.
>
> https://codereview.chromium.org/1074633002/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to blink-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698