Skip to main content
Participant
June 23, 2008
Question

How to play a FMS live stream in a .flv file?

  • June 23, 2008
  • 2 replies
  • 456 views
Hi there.

I have FMS 3 installed and have successfully managed to stream from a client to the server and using the sample code I can watch my stream and it all looks good. However I have very little knowledge of flash and now I'm stuck.

I would like to be able to stream my live feed within a .flv file. Please could someone give me a hand on playing the live feed within my flash movie.

It just needs to be as simple as watching the feed. no controls etc etc. Almost as if its a web cam.

Thanks in advance


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

    2 replies

    June 24, 2008
    That would need using Stream.get & stream.play APIs on server side. it will be a small script depending upon the functionality you want. It can be done with Flash media Interactive version only,

    for a trial you might want to do this:
    -- in application/live, make change as par readme.txt so that you may modify sample Live app.
    -- in main.asc of the sample live app (that comes with FMS3) add these lines in function onAppStart()

    var playStream = Stream.get("foo");
    playStream.play("flv:my_video", 0, -1);

    Place the video(my_video.flv) in directory (install-dir)/Flash media server3/applications/Live l becase this is the place from where default live app is configured pick stream.

    use livetest.swf to watch this video using rtmp://localhost/live/foo.

    hope this helps.



    June 24, 2008