1 (edited by Chumbera 2010-02-18 01:15:43)

Topic: Sound streaming (onLoad event)

Hi, I'm trying to develop an audio streaming Widget for my Chumby smile. I have uploaded the songs to play using one http server.
Everything is ok , I can loadSound with muy Sound object, start from beginning, pause and so on...
The problem is that I need to start from a defined position,not beginning. I was trying with the onLoad event, but it doesn't work when I play the widget on my Chumby (in Flash CS3 it's ok when I start the sound with second offset inside this event handler ).

Any help with starting the sound for example from second 10 in Chumby???? (As I mentioned before, on my PC works fine....)

Thanks

Re: Sound streaming (onLoad event)

As far as I know, you won't be able to do that with a streaming sound.  The file would need to be loaded in its entirety first.

Cheers.

Re: Sound streaming (onLoad event)

Ok,thanks smile
How can I know the file is loaded??? As far as i know the possible events are onLoad (when there is data) and onSoundComplete (when Play is completed), is it right??Using getBytesLoaded and getBytesTotal??
Any idea to control this??With loadSound(URL,false) ??