Question
Simultaneous recording & playing
Hi all.
I know my problem should be easy to solve, but I can't finde a glue. Please, be patient for I'm totally new to the issue.
Here's the code:
broadcasting (publishing SWF)
and here's the SWF intendet to accept the video:
I can see server creating a new my_recorded_stream.flv, but the second SWF recieves nothing.
I would greatly apprecate any help!
I know my problem should be easy to solve, but I can't finde a glue. Please, be patient for I'm totally new to the issue.
Here's the code:
broadcasting (publishing SWF)
var my_cam:Camera = Camera.get();
var my_video:Video;
my_video.attachVideo(my_cam);
var client_nc = new NetConnection();
client_nc.virtualKey = "live";
client_nc.connect("rtmp:/record", "cam");
out_ns = new NetStream(client_nc);
out_ns.attachVideo(my_cam);
out_ns.publish("my_recorded_stream", "record");
client_nc.msgFromSrvr = function(msg) {
trace(msg);
for(i in msg){
trace(i+" "+msg );
}
};
and here's the SWF intendet to accept the video:
var my_video:Video;
var client_nc = new NetConnection();
client_nc.connect("rtmp:/record", "user");
in_ns = new NetStream(client_nc);
in_ns.attachVideo(my_video);
in_ns.play("my_recorded_stream.flv");
client_nc.r_play = function(msg) {
trace(msg);
for(i in in_ns){
trace(i +" "+in_ns);
}
for(i in _root.my_video){
trace(i+" # "+_root.my_video );
}
};
I can see server creating a new my_recorded_stream.flv, but the second SWF recieves nothing.
I would greatly apprecate any help!
