Skip to main content
Known Participant
August 9, 2007
Question

streaming recorded media by a client

  • August 9, 2007
  • 1 reply
  • 298 views
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?


    This topic is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    August 10, 2007
    Nope. It doesn't work that way. First, the Flashplayer doesn't have local filesystem access beyond the fileReference class, so the local file is out.

    The next problem is that as things are now, the only video source you can attach to a netstream on the client side is a camera object. So, even if you could get to that file, you couldn't publish it.

    You might try a client side desktop application that plays videos files and emulates a webcam driver (I think there's a few out there). Otherwise, you'll need to upload those flv files to the server.