[theora] using the jScript function getPlayPosition() in Cortago

Gabriel TEIXEIRA gabriel_teixeira at sdesigns.eu
Wed Oct 13 02:45:46 PDT 2010


On 12/10/2010 21:24, Mark Edwards wrote:
>
> hello again all -
>
> i seem to be a bit stuck on the proper use of getPlayPosition() inside 
> of jscript:
>
>         document.applets['cortado'].doPlay();   // works fine!
>         alert ( document.applets['cortago'].getPlayPosition() )  ;   //
>
> on my alert line, i get this error message:
>
> Error: document.applets.javaPlayerApplet.getPlayPosition is not a function
>
> does anybody have an example of getPlayPosition() in use?
>
> when i read: http://git.xiph.org/?p=cortado.git;a=blob;f=README
>
>  300 The applet can be controlled with the following javascript methods:
>  302   doPlay(): Start playback
> ................
>  305   doSeek(double pos); seek to a new position, must be between 0.0 
> and 1.0.
>  306   getPlayPosition(): returns current position in seconds
>
> it would appear the syntax using doPlay() and getPlayPosition() would 
> be identical.
>
>
> thanks again, and sorry for the newbie questions,
> mark
>
>
>
> _______________________________________________
> theora mailing list
> theora at xiph.org
> http://lists.xiph.org/mailman/listinfo/theora
>    
I noticed that you wrote 'cortago' instead of 'cortado' in the line that 
says: alert ( document.applets['cortago'].getPlayPosition() ) just like 
in the title of the e-mail. May be this is the actual issue or just me 
that don't understand very well how cortado works under js.

Cheers
Gabriel TEIXEIRA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/theora/attachments/20101013/e6fa0c0d/attachment.htm 


More information about the theora mailing list