Hey, all!
For some reason, I can use a videoview to view a streaming FLV just
fine. However, I can't seem to get it to work with an MP3. I've tried
using a simple videoview, a videoview with an embedded mediastream,
using a file on localhost, using files on a remote server, etc. Nothing
I do seems to help. From my tests, the files are loading fine, I just
can't get them to play.
I've uploaded an MP3 to a public-facing server for a simple test.
Please give this test harness a shot:
<canvas width="100%" height="100%" debug="true">
<simplelayout axis="y"/>
<videoview name="video" autoplay="true">
<!-- <mediastream name="stream"
url="http://localhost:8080/lps-4.0.2/track4.mp3"> -->
<mediastream name="stream"
url="http://featurific.com/files/tmp/shiver.mp3">
<handler name='onprogress'>
Debug.write("PROGRESS! " + progress)
if(progress==1)
{
Debug.write("Come on, play!")
play()
}
</handler>
<handler name='onrequest'>
Debug.write("REQUEST!")
</handler>
<handler name='onurl'>
Debug.write("URL!")
</handler>
<handler name='onload'>
Debug.write("LOAD!")
</handler>
</mediastream>
</videoview>
<!-- <videoview url="http://featurific.com/files/tmp/shiver.mp3"
autoplay="true"/> -->
<!-- <videoview url="http://site.airgundepot.com/video/agd.flv"
autoplay="true" width="800" height="600"/> -->
<!-- <videoview url="http://site.airgundepot.com/video/agd.flv"
autoplay="true">
<animator name="movex" attribute="x" to="300" duration="5000"
start="true"/>
<animator name="movey" attribute="y" to="300" duration="7000"
start="true"/>
</videoview> -->
</canvas>
As a side-note, I've been able to find examples of using a videoview
with a .flv file. However, I can't find any code examples on the net of
someone using a videoview with an MP3 file to provide just audio alone.
So strange for a feature that seems so powerful! (The original laszlo
killer-app (Pandora) relied profoundly on this feature, right?
Surprising...)
Anyway, thanks in advance for your help! :)
-Rich
P.S. THis is my first post to the email group. Which is better for
questions like this - the email group or the forums on the website? I'd
imagine turnaround time is shorter here, and the discussion is still
indexed somewhere as Google-fodder, right?