[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&nbsp; "url" is point to will play just fine:<br><pre id="line1">&lt;<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>&lt;script type="text/javascript" &gt;<br><br>function \
playSound1()&nbsp;&nbsp;&nbsp; {<br><span>&nbsp;&nbsp;&nbsp; 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>'&nbsp;&nbsp;&nbsp; \
;</span><br>&nbsp;&nbsp;&nbsp; document.applets['javaPlayerApplet'].setParam('url', \
url );<br>&nbsp;&nbsp;&nbsp; \
document.applets['javaPlayerApplet'].restart();<br>&nbsp;&nbsp;&nbsp; \
document.applets['javaPlayerApplet'].doPlay();<br>}<br><br>function  \
playSound8()&nbsp;&nbsp;&nbsp; {<br><span>&nbsp;&nbsp;&nbsp; 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>'&nbsp;&nbsp;&nbsp; \
;</span><br>&nbsp;&nbsp;&nbsp; document.applets['javaPlayerApplet'].setParam('url', \
url );<br>&nbsp;&nbsp;&nbsp; \
document.applets['javaPlayerApplet'].restart();<br>&nbsp;&nbsp;&nbsp; \
document.applets['javaPlayerApplet'].doPlay();<br>}<br><br>&lt;/script&gt;<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>&lt;applet \
code="com.fluendo.player.Cortado.class"<br>&nbsp;&nbsp;&nbsp; \
name='javaPlayerApplet'<br><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
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>&nbsp;&nbsp;&nbsp; \
&nbsp;&nbsp;&nbsp; width="152" height="204"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;param \
name="autoPlay" value="0"&gt;<br><span>&nbsp;&nbsp;&nbsp; <param name="url" \
value="&lt;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' \
/&gt;</span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="framerate" \
value="29"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="keepAspect" \
value="true"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="video" \
value="true"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="audio"  \
value="true"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="bufferSize" \
value="100"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="userId" \
value="user"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="password" \
value="test"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; applet stuff goes \
here<br>&nbsp;&nbsp;&nbsp; &lt;/applet&gt;<br><br>&nbsp;&nbsp;&nbsp; &lt;br \
/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br>&lt;a href='#' \
onClick='javascript:playSound1();'&gt;play one which was not \
preloaded&lt;/a&gt;<br>&nbsp;&nbsp;&nbsp; &lt;br /&gt;<br>&nbsp;&nbsp;&nbsp; &lt;br \
/&gt;<br>&lt;a href='#' onClick='javascript:playSound8();'&gt;play eight which was \
preloaded&lt;/a&gt;<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