Kjup
2006-09-15 22:05:08 UTC
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 scubber and a
timmer/clock if possible. Many thanks for any help in advance!
Regards,
-Kjup
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 scubber and a
timmer/clock if possible. Many thanks for any help in advance!
Regards,
-Kjup