[prev in list] [next in list] [prev in thread] [next in thread] 

List:       theora
Subject:    Re: [theora] another newbie question
From:       Mark Edwards <mark_f_edwards () yahoo ! com>
Date:       2010-10-12 15:53:31
Message-ID: 285685.83801.qm () web33206 ! mail ! mud ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


yes i meant the cortado player - sorry i didnt make this clear!

i am also using the java version in order to make it work on the 
internet-explorer browser, which does not seem to support html5 very well (or 
anything else for that matter)

ben schwartz kindly wrote:  "We might be able to add a more event-based 
interface if that would be helpful to you."

my desire is to be able to trigger another javaScript event as soon as the 
player is finished playing the media.   is there anything i can do that might 
inspire somebody to do this?  :-)

in the meantime, i will investigate the getPlayPosition() method.

thank you all very much,

mark





________________________________
From: Ralph Giles <giles@thaumas.net>
To: mark <mark_f_edwards@yahoo.com>
Cc: theora@xiph.org
Sent: Tue, October 12, 2010 8:39:08 AM
Subject: Re: [theora] another newbie question

On 12 October 2010 08:16, mark <mark@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
_______________________________________________
theora mailing list
theora@xiph.org
http://lists.xiph.org/mailman/listinfo/theora

[Attachment #5 (text/html)]

<html><head><style type="text/css"><!-- DIV {margin:0px;} \
--></style></head><body><div \
style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div><br>yes i meant \
the cortado player - sorry i didnt make this clear!<br><br>i am also using the java \
version in order to make it work on the internet-explorer browser, which does not \
seem to support html5 very well (or anything else for that matter)<br><br>ben \
schwartz kindly wrote:&nbsp; "We might be able to add a more event-based interface if \
that would be helpful to you."<br><br>my desire is to be able to trigger another \
javaScript event as soon as the player is finished playing the media.&nbsp;&nbsp; is \
there anything i can do that might inspire somebody to do this?&nbsp; :-)<br><br>in \
the meantime, i will investigate the getPlayPosition() method.<br><br>thank you all \
very much,<br><br>mark<br><br></div><div style="font-family: \
arial,helvetica,sans-serif; font-size: 10pt;"><br><div  style="font-family: \
arial,helvetica,sans-serif; font-size: 10pt;"><font face="Tahoma" size="2"><hr \
size="1"><b><span style="font-weight: bold;">From:</span></b> Ralph Giles \
&lt;giles@thaumas.net&gt;<br><b><span style="font-weight: bold;">To:</span></b> mark \
&lt;mark_f_edwards@yahoo.com&gt;<br><b><span style="font-weight: \
bold;">Cc:</span></b> theora@xiph.org<br><b><span style="font-weight: \
bold;">Sent:</span></b> Tue, October 12, 2010 8:39:08 AM<br><b><span \
style="font-weight: bold;">Subject:</span></b> Re: [theora] another newbie \
question<br></font><br> On 12 October 2010 08:16, mark &lt;<a \
ymailto="mailto:mark@edwardsmark.com" \
href="mailto:mark@edwardsmark.com">mark@edwardsmark.com</a>&gt; wrote:<br><br>&gt; is \
there a way for the theora player to signal a javascript event when the<br>&gt; media \
is finished playing?<br><br>If you mean cortado, not currently. There was an intent \
to make it<br>more like the html5 media element which does emit an 'ended' \
event,<br>but that hasn't happened. Code welcome. :)<br><br>You can poll the \
getPlayPosition() method on the applet and compare<br>that with the duration of the \
clip. You might also try the kaltura<br>player, which IIRC had some javascript to \
emulate the html5 api over<br>the cortado applet.<br><span><a target="_blank" \
href="http://www.kaltura.org/project/HTML5_Video_Media_JavaScript_Library">http://www. \
kaltura.org/project/HTML5_Video_Media_JavaScript_Library</a></span><br><br>HTH,<br> \
-r<br>_______________________________________________<br>theora  mailing list<br><a \
ymailto="mailto:theora@xiph.org" \
href="mailto:theora@xiph.org">theora@xiph.org</a><br><span><a target="_blank" \
href="http://lists.xiph.org/mailman/listinfo/theora">http://lists.xiph.org/mailman/listinfo/theora</a></span><br></div></div>
 </div></body></html>



_______________________________________________
theora mailing list
theora@xiph.org
http://lists.xiph.org/mailman/listinfo/theora


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic