W3C home > Mailing lists > Public > public-html@w3.org > February 2013

Re: cue.PauseOnExit needs improvement

From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Wed, 27 Feb 2013 11:21:19 +1100
Message-ID: <CAHp8n2kdr8jaVwr0xhq-WDWdM9m3O07Qe8eO6pdrzc36p6K2Lw@mail.gmail.com>
To: GIDEON ISAAC <mad.gideon.isaac@hotmail.com>
Cc: w3 html5 forum <public-html@w3.org>
On Wed, Feb 27, 2013 at 2:51 AM, GIDEON ISAAC
<mad.gideon.isaac@hotmail.com>wrote:

> Suppose I have a video with several subtitles at various points.  I want
> to give the user the option of pausing at every subtitle.  I thought I
> could use cue.pauseOnExit, but that doesn't accomplish this.  I can make a
> short cue, of maybe half a second, and the subtitle will show at the
> duration of the cue, but then the video stops, and the subtitle
> disappears.  It would be nice if the subtitle could be made to stay at the
> exit and only vanish when the user starts playing the video again.  That
> way, the user can step through the video, from subtitle to subtitle.
> -- Gideon
>

The end of the subtitle is defined by it disappearing, not by the time
before it disappears. To step through the video subtitle by subtitle, I
suggest stepping from onenter to onenter.

oncuechange, onenter, onexit are the events you're looking for:
http://www.w3.org/TR/html51/embedded-content-0.html#handler-texttrack-oncuechange

Hope this helps.

Cheers,
Silvia.
Received on Wednesday, 27 February 2013 00:22:08 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:37 UTC