This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17259 - suggest on reverse order play method for media element
Summary: suggest on reverse order play method for media element
Status: RESOLVED WORKSFORME
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-31 02:19 UTC by Yang Sun
Modified: 2012-06-02 17:40 UTC (History)
6 users (show)

See Also:


Attachments

Description Yang Sun 2012-05-31 02:19:27 UTC
Hi all,
Now web video service are very popular in the world,
when we are developing some kind of service, we feel it will be beneficial if video element can support reverse order play method,especially in social video, video play according to comment etc.

So in summary, can we have a method:

video.reverseplay() to support this? or we may have some parameter in this function, the reverseplay start time, end time.

expecting your feedback.
thanks.
Comment 1 Silvia Pfeiffer 2012-05-31 05:27:40 UTC
Do you mean: play backwards?

If so, we already have
 attribute double playbackRate;
which when negative should play backwards.

It's just that not all browsers have implemented this feature. (Safari has it, FAIK).

If you want it, you will need to register bugs on the individual browsers.
Comment 2 Yang Sun 2012-05-31 05:49:53 UTC
Yes, I mean play backwards.

When I test chrome 21 in win 7, it show the playbackrate API, and when I playbackrate-- till -1,-2, the video just stop, stop playing, when the number change to positive, it start playing again.
When I test safari 5.1.7 in win 7, the page show nearly all the media event API is not supported, not to mention playbackrate--, I do not know why.

http://www.w3.org/2010/05/video/mediaevents.html
you can test it through above page.

So I guess, the playbackrate can not control the video to play backwards.







(In reply to comment #1)
> Do you mean: play backwards?
> 
> If so, we already have
>  attribute double playbackRate;
> which when negative should play backwards.
> 
> It's just that not all browsers have implemented this feature. (Safari has it,
> FAIK).
> 
> If you want it, you will need to register bugs on the individual browsers.
Comment 3 Silvia Pfeiffer 2012-05-31 05:54:25 UTC
Maybe Safari on Windows doesn't have support. I just tested Safari 5.1.5 on the Mac and it plays backwards with negative playbackRate.

http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-media-playbackrate explicitly mentions playing backwards.
Comment 4 Yang Sun 2012-05-31 06:12:18 UTC
Thanks, I notice the backward in WHATWG, yes negative means backwards.
But I just test safari5 in MAC, it does not support playing the video in 
http://www.w3.org/2010/05/video/mediaevents.html(mp4,ogg,webm both contained), not to mention the backwards....

I will test it in IPAD when I am home.

thank you for providing information from WHATWG



(In reply to comment #3)
> Maybe Safari on Windows doesn't have support. I just tested Safari 5.1.5 on the
> Mac and it plays backwards with negative playbackRate.
> 
> http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-media-playbackrate
> explicitly mentions playing backwards.
Comment 5 Silvia Pfeiffer 2012-05-31 07:52:02 UTC
(In reply to comment #4)
> Thanks, I notice the backward in WHATWG, yes negative means backwards.
> But I just test safari5 in MAC, it does not support playing the video in 
> http://www.w3.org/2010/05/video/mediaevents.html(mp4,ogg,webm both contained),
> not to mention the backwards....

How did you test that? If you load that page, then hit "play" and then reduce the 
playbackRate until it is negative, you will see that it starts playing backwards. You can check the currentTime for this - it is decreasing instead of increasing.
Comment 6 Yang Sun 2012-05-31 08:04:30 UTC
Open the page with safari, wait load the video, no progress for a long time, I have to press the load button, no reponse, then play ,no reponse......

I will test it at home with ipad tonight.


(In reply to comment #5)
> (In reply to comment #4)
> > Thanks, I notice the backward in WHATWG, yes negative means backwards.
> > But I just test safari5 in MAC, it does not support playing the video in 
> > http://www.w3.org/2010/05/video/mediaevents.html(mp4,ogg,webm both contained),
> > not to mention the backwards....
> 
> How did you test that? If you load that page, then hit "play" and then reduce
> the 
> playbackRate until it is negative, you will see that it starts playing
> backwards. You can check the currentTime for this - it is decreasing instead of
> increasing.
Comment 7 Yang Sun 2012-06-01 01:44:58 UTC
Hi, I test with my IPAD2 yesterday evening.
Safari on IPAD2 can play the video, but the playbackrate-- can not make play backwards.


(In reply to comment #5)
> (In reply to comment #4)
> > Thanks, I notice the backward in WHATWG, yes negative means backwards.
> > But I just test safari5 in MAC, it does not support playing the video in 
> > http://www.w3.org/2010/05/video/mediaevents.html(mp4,ogg,webm both contained),
> > not to mention the backwards....
> 
> How did you test that? If you load that page, then hit "play" and then reduce
> the 
> playbackRate until it is negative, you will see that it starts playing
> backwards. You can check the currentTime for this - it is decreasing instead of
> increasing.
Comment 8 Glenn Adams 2012-06-02 17:40:16 UTC
as Sylvia says, you get reverse playback by using a negative value for playbackRate, so this feature is already supported in the spec without requiring a new method;