Skip to main content
Participant
March 26, 2007
Question

sample cade needed

  • March 26, 2007
  • 1 reply
  • 213 views
Hi All,

Can some one help me in getting a sample code for video streaming via media server and flash. I am totally new to media server.

Thanks in advance.
John
    This topic has been closed for replies.

    1 reply

    Participant
    March 28, 2007
    Try these steps:

    Let's say you want to stream a file named myvid.flv from a FMS named myfms (server name)

    1. Create a folder named myvid under Applications folder where FMS is installed.
    3. Create a sub folder named streams and then another subfolder underneath it named _definst
    4. Copy myvid.flv here
    5. Open Flash 8 and create a new file named myvid.fla
    4. Insert a FLVPlayback component on the stage
    5. Name the FLVPlayback FLPV_video
    6. Copy this 2 lines of Actionscript codes on the 1st frame
    import mx.video.FLVPlayback;
    FLVP_video.contentPath = "rtmp://myfms/myvid/myvid.flv";
    7. Hit control+enter
    8. The file should be streaming from your media server.

    I am assuming that you have installed FMS 2.0, have upgraded it to 2.04 and have full access to the folder.

    Good luck and let us know if that works for you.

    Azadul Haq