Re: another newbie question

Ralph Giles <[email protected]>
Newsgroups gmane.comp.multimedia.ogg.theora.general
Message-ID <[email protected]>
On 12 October 2010 08:16, mark <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.