[theora] another newbie question
Ralph Giles
giles at thaumas.net
Tue Oct 12 08:39:08 PDT 2010
On 12 October 2010 08:16, mark <mark at edwardsmark.com> wrote:
> is there a way for the theora player to signal a javascript event when the
> media is finished playing?
If you mean cortado, not currently. There was an intent to make it
more like the html5 media element which does emit an 'ended' event,
but that hasn't happened. Code welcome. :)
You can poll the getPlayPosition() method on the applet and compare
that with the duration of the clip. You might also try the kaltura
player, which IIRC had some javascript to emulate the html5 api over
the cortado applet.
http://www.kaltura.org/project/HTML5_Video_Media_JavaScript_Library
HTH,
-r
More information about the theora
mailing list