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

Issue 11198055: Fix media stream playback event as media element. (Closed)

Created:
8 years, 2 months ago by wjia(left Chromium)
Modified:
8 years, 2 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Fix media stream playback event as media element. When media stream is played with <video>, it needs to emit events as media element (defined at http://dev.w3.org/html5/spec-author-view/video.html#mediaevents). This patch fixes events: canplay, play, playing and timeupdate. VideoFrameProvider will be started when player is loaded. HaveMetaData and HaveEnoughData will be sent out when the first frame is received in player. In autoplay off mode, <video> for media stream will display black window till play is requrested. BUG=156310, 142988, 110938 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=163872

Patch Set 1 #

Total comments: 2

Patch Set 2 : fire events after first frame is avaialbe #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -17 lines) Patch
M webkit/media/webmediaplayer_ms.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/media/webmediaplayer_ms.cc View 1 4 chunks +21 lines, -15 lines 1 comment Download

Messages

Total messages: 10 (0 generated)
wjia(left Chromium)
8 years, 2 months ago (2012-10-18 04:09:28 UTC) #1
scherkus (not reviewing)
OOC are there any automated tests to back this up? The bug links to what ...
8 years, 2 months ago (2012-10-18 05:19:58 UTC) #2
wjia(left Chromium)
On 2012/10/18 05:19:58, scherkus wrote: > OOC are there any automated tests to back this ...
8 years, 2 months ago (2012-10-19 00:14:17 UTC) #3
scherkus (not reviewing)
On 2012/10/19 00:14:17, wjia wrote: > On 2012/10/18 05:19:58, scherkus wrote: > > OOC are ...
8 years, 2 months ago (2012-10-19 02:07:34 UTC) #4
scherkus (not reviewing)
http://codereview.chromium.org/11198055/diff/1/webkit/media/webmediaplayer_ms.cc File webkit/media/webmediaplayer_ms.cc (right): http://codereview.chromium.org/11198055/diff/1/webkit/media/webmediaplayer_ms.cc#newcode346 webkit/media/webmediaplayer_ms.cc:346: paused_ = false; as discussed offline... you shouldn't set ...
8 years, 2 months ago (2012-10-19 22:16:37 UTC) #5
wjia(left Chromium)
Thanks! PTAL. Now most of events will be fired after first frame is received. http://codereview.chromium.org/11198055/diff/1/webkit/media/webmediaplayer_ms.cc ...
8 years, 2 months ago (2012-10-21 22:11:12 UTC) #6
scherkus (not reviewing)
thanks wei! one more question then we can close this out http://codereview.chromium.org/11198055/diff/13001/webkit/media/webmediaplayer_ms.cc File webkit/media/webmediaplayer_ms.cc (right): ...
8 years, 2 months ago (2012-10-22 17:40:05 UTC) #7
wjia(left Chromium)
On 2012/10/22 17:40:05, scherkus wrote: > thanks wei! > > one more question then we ...
8 years, 2 months ago (2012-10-22 18:26:21 UTC) #8
scherkus (not reviewing)
On 2012/10/22 18:26:21, wjia wrote: > On 2012/10/22 17:40:05, scherkus wrote: > > thanks wei! ...
8 years, 2 months ago (2012-10-22 18:29:49 UTC) #9
wjia(left Chromium)
8 years, 2 months ago (2012-10-22 20:56:39 UTC) #10
On Mon, Oct 22, 2012 at 11:29 AM, <scherkus@chromium.org> wrote:

> On 2012/10/22 18:26:21, wjia wrote:
>
>> On 2012/10/22 17:40:05, scherkus wrote:
>> > thanks wei!
>> >
>> > one more question then we can close this out
>> >
>> >
>>
>
> http://codereview.chromium.**org/11198055/diff/13001/**
>
webkit/media/webmediaplayer_**ms.cc<http://codereview.chromium.org/11198055/diff/13001/webkit/media/webmediaplayer_ms.cc>
>
>> > File webkit/media/webmediaplayer_**ms.cc (right):
>> >
>> >
>>
>
> http://codereview.chromium.**org/11198055/diff/13001/**
>
webkit/media/webmediaplayer_**ms.cc#newcode357<http://codereview.chromium.org/11198055/diff/13001/webkit/media/webmediaplayer_ms.cc#newcode357>
>
>> > webkit/media/webmediaplayer_**ms.cc:357: start_time_ =
>> frame->GetTimestamp();
>> > when we play, then pause, then play again won't time jump forward?
>> >
>> > is that expected or will the frame provider adjust timestamps as
>> necessary
>> when
>> > pausing/playing?
>>
>
>  Yes, the time will jump forward after resuming from pause for current
>> implementation.
>>
>
>  It's not defined in spec. "Pause" is kind of weird for real-time
>> communication
>> anyway. It might be mapped to "mute". The key is: what's the media time?
>> Is it
>> tied with wall clock or something else such as audio? I think both are ok.
>>
>
>  If "pause" also pauses master clock (i.e., media time), then VFP should
>> adjust
>> timestamp after being paused. Otherwise, VFP doesn't need to change
>> timestamp.
>> Current implementation takes the latter approach. This is ok with WebKit
>> since
>> they don't do scheduling for video rendering. Another benefit is <video>
>> controls can show correct time for the meeting.
>>
>
>  WDYT?
>>
>
> It sounds like it should be clarified in the spec but we don't need to
> hold up
> this CL for now.
>
> LGTM and can you look into clarifying the spec? (i.e., ask hta@?)
>

Thanks! I will follow up with hta@ about this.



>
>
http://codereview.chromium.**org/11198055/<http://codereview.chromium.org/111...
>

Powered by Google App Engine
This is Rietveld 408576698