[prev in list] [next in list] [prev in thread] [next in thread]
List: theora
Subject: Re: [theora] total newbie issue with Cortado player using new java
From: Mark Edwards <mark_f_edwards () yahoo ! com>
Date: 2010-10-13 18:39:51
Message-ID: 353982.54637.qm () web33207 ! mail ! mud ! yahoo ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
hello again -
it would appear that when the page first loads, whatever parameter that "url"
is point to will play just fine:
<param name="url" value='http://blah-blah-blah'
however, the jScript option no longer seems to work (for me) using java-1.6.0_22
here is an example:
http://www.comptonpeslonline.com/compton-pesl-practice-program/tester/cortado.shtml
code below:
<script type="text/javascript" >
function playSound1() {
url =
'http://www.comptonpeslonline.com/compton-pesl-practice-program/tester/audio/01.ogg' \
;
document.applets['javaPlayerApplet'].setParam('url', url );
document.applets['javaPlayerApplet'].restart();
document.applets['javaPlayerApplet'].doPlay();
}
function playSound8() {
url =
'http://www.comptonpeslonline.com/compton-pesl-practice-program/tester/audio/08.ogg' \
;
document.applets['javaPlayerApplet'].setParam('url', url );
document.applets['javaPlayerApplet'].restart();
document.applets['javaPlayerApplet'].doPlay();
}
</script>
pre-loading
http://www.comptonpeslonline.com/compton-pesl-practice-program/tester/audio/08.ogg
<applet code="com.fluendo.player.Cortado.class"
name='javaPlayerApplet'
archive="http://www.comptonpeslonline.com/compton-pesl-practice-program/tester/cortado-ovtk-debug-0.6.0.jar"
width="152" height="204">
<param name="autoPlay" value="0">
http://www.comptonpeslonline.com/compton-pesl-practice-program/tester/audio/08.ogg'
/>
<param name="framerate" value="29"/>
<param name="keepAspect" value="true"/>
<param name="video" value="true"/>
<param name="audio" value="true"/>
<param name="bufferSize" value="100"/>
<param name="userId" value="user"/>
<param name="password" value="test"/>
applet stuff goes here
</applet>
<br />
<br />
<a href='#' onClick='javascript:playSound1();'>play one which was not
preloaded</a>
<br />
<br />
<a href='#' onClick='javascript:playSound8();'>play eight which was
preloaded</a>
[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 \
style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br>hello again \
-<br><br>it would appear that when the page first loads, whatever parameter \
that "url" is point to will play just fine:<br><pre id="line1"><<span \
class="start-tag">param</span><span class="attribute-name"> name</span>=<span \
class="attribute-value">"url" </span><span \
class="attribute-name">value</span><span>='<a target="_blank" \
href="http://blah-blah-blah">http://blah-blah-blah</a>'</span><span \
class="attribute-value"></span></pre> <br><br>however, the jScript option no longer \
seems to work (for me) using java-1.6.0_22<br><br><br>here is an \
example:<br><br><span><a target="_blank" \
href="http://www.comptonpeslonline.com/compton-pesl-practice-program/tester/cortado.sh \
tml">http://www.comptonpeslonline.com/compton-pesl-practice-program/tester/cortado.shtml</a></span><br><br><br>code \
below:<br><br><br><script type="text/javascript" ><br><br>function \
playSound1() {<br><span> url = '<a \
target="_blank" href="http://www.comptonpeslonline.com/compton-pesl-practice-program/t \
ester/audio/01.ogg">http://www.comptonpeslonline.com/compton-pesl-practice-program/tester/audio/01.ogg</a>' \
;</span><br> document.applets['javaPlayerApplet'].setParam('url', \
url );<br> \
document.applets['javaPlayerApplet'].restart();<br> \
document.applets['javaPlayerApplet'].doPlay();<br>}<br><br>function \
playSound8() {<br><span> url = '<a \
target="_blank" href="http://www.comptonpeslonline.com/compton-pesl-practice-program/t \
ester/audio/08.ogg">http://www.comptonpeslonline.com/compton-pesl-practice-program/tester/audio/08.ogg</a>' \
;</span><br> document.applets['javaPlayerApplet'].setParam('url', \
url );<br> \
document.applets['javaPlayerApplet'].restart();<br> \
document.applets['javaPlayerApplet'].doPlay();<br>}<br><br></script><br><br><span><h1>pre-loading \
<a target="_blank" href="http://www.comptonpeslonline.com/compton-pesl-practice-progra \
m/tester/audio/08.ogg">http://www.comptonpeslonline.com/compton-pesl-practice-program/tester/audio/08.ogg</a></h1></span><br><applet \
code="com.fluendo.player.Cortado.class"<br> \
name='javaPlayerApplet'<br><span> \
archive="<a target="_blank" \
href="http://www.comptonpeslonline.com/compton-pesl-practice-program/tester/cortado-ov \
tk-debug-0.6.0.jar">http://www.comptonpeslonline.com/compton-pesl-practice-program/tester/cortado-ovtk-debug-0.6.0.jar</a>"</span><br> \
width="152" height="204"><br> <param \
name="autoPlay" value="0"><br><span> <param name="url" \
value="<a target=" _blank="" \
href="http://www.comptonpeslonline.com/compton-pesl-practice-program/tester/audio/08.o \
gg">http://www.comptonpeslonline.com/compton-pesl-practice-program/tester/audio/08.ogg' \
/></span><br> <param name="framerate" \
value="29"/><br> <param name="keepAspect" \
value="true"/><br> <param name="video" \
value="true"/><br> <param name="audio" \
value="true"/><br> <param name="bufferSize" \
value="100"/><br> <param name="userId" \
value="user"/><br> <param name="password" \
value="test"/><br> applet stuff goes \
here<br> </applet><br><br> <br \
/><br> <br /><br><a href='#' \
onClick='javascript:playSound1();'>play one which was not \
preloaded</a><br> <br /><br> <br \
/><br><a href='#' onClick='javascript:playSound8();'>play eight which was \
preloaded</a><br><div style="font-family: times new roman,new york,times,serif; \
font-size: 12pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: \
10pt;"> </div></div><div style="font-family: times new roman,new york,times,serif; \
font-size: 12pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: \
10pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div \
style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div \
style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div \
style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div \
style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div \
style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div \
style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div \
style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div \
style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div \
style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div \
style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div \
style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div \
style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"> </div>
</div></div></div>
</div></div></div>
</div></div></div>
</div></div></div>
</div></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