Answered
Rename _definst_
Hi all..
I am sending live video streams over Flash Media Server 3.0. I am using following code.
camCon = new NetConnection();
camCon.connect("rtmp://localhost/higherup/_definst_");
myCam = Camera.get();
myCam.setMode( 300, 230, 100);
myCam.setQuality(0, 100);
camStream = new NetStream(camCon);
camStream.attachVideo(myCam);
camStream.publish("_definst_", "live");
myPlayer.load("rtmp://localhost/higherup/_definst_", true);
It all works fine. This code connects my webcam to flash movie and stream it through FMS. In the last line of code, I am catching the stream and attaching to FlvPlayback control.
Now the problem is, I want to change the name of stream from "_definst_" to something else, lets say "_raheel_". This renaming of default instance doesnt work..... I cant see my webcam playing....
camStream.publish("_raheel_", "live");
OR
myPlayer.load("rtmp://localhost/higherup/_raheel_", true);
These above 2 lines are example of what I want to do.
Please help. Thanks in advance.
Raheel
I am sending live video streams over Flash Media Server 3.0. I am using following code.
camCon = new NetConnection();
camCon.connect("rtmp://localhost/higherup/_definst_");
myCam = Camera.get();
myCam.setMode( 300, 230, 100);
myCam.setQuality(0, 100);
camStream = new NetStream(camCon);
camStream.attachVideo(myCam);
camStream.publish("_definst_", "live");
myPlayer.load("rtmp://localhost/higherup/_definst_", true);
It all works fine. This code connects my webcam to flash movie and stream it through FMS. In the last line of code, I am catching the stream and attaching to FlvPlayback control.
Now the problem is, I want to change the name of stream from "_definst_" to something else, lets say "_raheel_". This renaming of default instance doesnt work..... I cant see my webcam playing....
camStream.publish("_raheel_", "live");
OR
myPlayer.load("rtmp://localhost/higherup/_raheel_", true);
These above 2 lines are example of what I want to do.
Please help. Thanks in advance.
Raheel