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

Mark Edwards mark_f_edwards at yahoo.com
Tue Oct 12 12:24:18 PDT 2010

hello again all -

i seem to be a bit stuck on the proper use of getPlayPosition() inside of 

        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 

thanks again, and sorry for the newbie questions,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/theora/attachments/20101012/d987ef08/attachment.htm 

More information about the theora mailing list