Topic: Help with playing audio file from widget (using Flashdevelop)
Here's what I'm trying to do:
1. ssh into chumby and mount a cifs share with mp3 audio files - done
2. try playing the audio files in the share using btplay /mnt/nas/TestVoice.mp3 - done
3. Download and try out a sample flashdevelop sample - done
4. Modify the sample to play a mp3 file when a menu item is selected, here's what I added:
static var _PlayAudio : Function = _global.ASNative(5,151); //xxxxx
...
function onMenuSelect(i:Number) {
_PlayAudio('/mnt/nas/TestVoice.mp3');
//trace("select " + i);
}
When testing within flashdevelop I uncommented the trace and verified that the message gets printed when selecting a menu item.
However when running the widget (tried uploading via chumby.com as well as running using stop_control_panel and chumbyflashplayer.x -i /mnt/nas/test.swf), the audio file does not play.
I would appreciate any pointers on getting this to work, if this is not possible any alternative way to accomplish playing a cifs mounted file would be fine too.
A pointer to sample flashdevelop source that does this would be even better.
Thanks.