Re: using the jScript function getPlayPosition() in Cortago

Gabriel TEIXEIRA <[email protected]>
Newsgroups gmane.comp.multimedia.ogg.theora.general
Message-ID <[email protected]>
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
> [email protected]
> 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

_______________________________________________
theora mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/theora
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.