<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 12/10/2010 21:24, Mark Edwards wrote:
<blockquote cite="mid:633157.8582.qm@web33203.mail.mud.yahoo.com"
type="cite">
<style type="text/css"><!-- DIV {margin:0px;} --></style>
<div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">
<div><br>
hello again all -<br>
<br>
i seem to be a bit stuck on the proper use of getPlayPosition() inside
of jscript: <br>
<br>
document.applets['cortado'].doPlay(); // works fine!<br>
alert ( document.applets['cortago'].getPlayPosition() ) ; //
<br>
<br>
on my alert line, i get this error message:<br>
<br>
Error: document.applets.javaPlayerApplet.getPlayPosition is not a
function<br>
<br>
does anybody have an example of getPlayPosition() in use?<br>
<br>
<span>when i read: <a moz-do-not-send="true" target="_blank"
href="http://git.xiph.org/?p=cortado.git;a=blob;f=README">http://git.xiph.org/?p=cortado.git;a=blob;f=README</a></span><br>
<br>
300 The applet can be controlled with the following javascript methods:<br>
302 doPlay(): Start playback<br>
................<br>
305 doSeek(double pos); seek to a new position, must be between 0.0
and 1.0.<br>
306 getPlayPosition(): returns current position in seconds<br>
<br>
it would appear the syntax using doPlay() and getPlayPosition() would
be identical.<br>
<br>
<br>
thanks again, and sorry for the newbie questions,<br>
mark<br>
<br>
</div>
<div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">
<div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br>
</div>
</div>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
theora mailing list
<a class="moz-txt-link-abbreviated" href="mailto:theora@xiph.org">theora@xiph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xiph.org/mailman/listinfo/theora">http://lists.xiph.org/mailman/listinfo/theora</a>
</pre>
</blockquote>
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.<br>
<br>
Cheers<br>
Gabriel TEIXEIRA
</body>
</html>