Question
streaming recorded media by a client
In this way, a client does not have to upload media
files to an FMS server. He could store it on his
local harddisk, and when he plays it, everyone else could
watch and share it.
Based on my limited knowledge, could it be done this way:
1. build a network connection.
var nc:NetConnection = new NetConnection();
nc.connect("rtmp://toFMSserver...);
2. Then for client 1:
var media_ns:NetStream = new NetStream(nc);
media_ns.publish("mediaID"); // publish media_ns and give it an id.
media_ns.play("local/video.flv"); //play a local file.
3. Then for other clients, linked to the same FMS
application instance, they would do in their
own movies:
var clientNS = new NetStream(nc); //get a new stream
MyVideo.attachVideo(clientNS); //stream attached to a video
clientNS.play("mediaID"); //play the stream published by client1.
Would such a scheme work?
files to an FMS server. He could store it on his
local harddisk, and when he plays it, everyone else could
watch and share it.
Based on my limited knowledge, could it be done this way:
1. build a network connection.
var nc:NetConnection = new NetConnection();
nc.connect("rtmp://toFMSserver...);
2. Then for client 1:
var media_ns:NetStream = new NetStream(nc);
media_ns.publish("mediaID"); // publish media_ns and give it an id.
media_ns.play("local/video.flv"); //play a local file.
3. Then for other clients, linked to the same FMS
application instance, they would do in their
own movies:
var clientNS = new NetStream(nc); //get a new stream
MyVideo.attachVideo(clientNS); //stream attached to a video
clientNS.play("mediaID"); //play the stream published by client1.
Would such a scheme work?
