Question
simple mp3 player
Outside of the clunky media player component can someone give
me guidance on how to setup a custom player with these functions. A
counter/timer would be nice too but all I have is script for play
and stop which looks like this:
client_nc = new NetConnection();
client_nc.connect("rtmp://"+_level0.rtmpserver+"/fooserver/");
play_btn.onPress = function() {
in_ns.close();
in_ns = new NetStream(client_nc);
Replay_video.attachVideo(in_ns);
in_ns.setBufferTime(5);
in_ns.play("audio.mp3");
};
stop_btn.onPress = function() {
in_ns.close();
};
I'm basically just looking to add some script to this to add a scrubber and a timer/clock if possible. Many thanks for any help in advance!
Regards,
-Kjup
client_nc = new NetConnection();
client_nc.connect("rtmp://"+_level0.rtmpserver+"/fooserver/");
play_btn.onPress = function() {
in_ns.close();
in_ns = new NetStream(client_nc);
Replay_video.attachVideo(in_ns);
in_ns.setBufferTime(5);
in_ns.play("audio.mp3");
};
stop_btn.onPress = function() {
in_ns.close();
};
I'm basically just looking to add some script to this to add a scrubber and a timer/clock if possible. Many thanks for any help in advance!
Regards,
-Kjup