sbijkers
05-30-2005, 03:02 PM
I'm new to the FlashCom Server architecture and have a little problem.
I can publish a live feed from my webcam en play it on another swf. But when I try to upload a flv file to the server and try to play it in an swf it just doesn't work, The screen stays white....
Here is the code I use to play the flv:
connection = new NetConnection();
connection.connect("rtmp://flashcomserver.com/test/");
srcStream = new NetStream(connection);
// To play the flv file
srcStream.play("testfile"); //also tried testfile.flv instead of just testfile
_root.video_mc.attachVideo(srcStream);
I place my flv in the streams folder which is a subfolder of the test folder in the url I use.
Please can anyone help me!!
I can publish a live feed from my webcam en play it on another swf. But when I try to upload a flv file to the server and try to play it in an swf it just doesn't work, The screen stays white....
Here is the code I use to play the flv:
connection = new NetConnection();
connection.connect("rtmp://flashcomserver.com/test/");
srcStream = new NetStream(connection);
// To play the flv file
srcStream.play("testfile"); //also tried testfile.flv instead of just testfile
_root.video_mc.attachVideo(srcStream);
I place my flv in the streams folder which is a subfolder of the test folder in the url I use.
Please can anyone help me!!