Skip to main content
Participant
February 26, 2009
Question

Streaming video problem

  • February 26, 2009
  • 4 replies
  • 1188 views
Hello friends,

I have installed FMS 3.5 on my server say that is "rtmpe://myserver.net". I am using FXVideo player for streaming video from VOD directory from that server. But i have uploaded the build files of the player on a different server say that is http://www.abcd.com/FXPlayer.html. So, i put source of the player is "rtmp:/myserver.com/vod/sample" (where sample is a flv file). In local machine its working fine by putting source of the player is "rtmp:/vod/sample" . But i need to know how would i call a file on a different FMS server. Please help me.

Thanks,
Amit
    This topic has been closed for replies.

    4 replies

    March 6, 2009
    I would start doing "one or all" tests.

    Make the simplest possible test client with the FLVPlayback component and see if you can play the sample video that installs with the vod application -- sample.flv -- rtmp://servernameOrIP/vod/sample.

    Can you connect to another application on the server?
    March 11, 2009
    Amit,

    Just a quick check. Make sure your server "A" is not running a firewall that would block your requests or that the appropriate ports have been allowed. When running the SWF on server A, everything should work fine even with a firewall; however, if the firewall is blocking the necessary ports, you would not have any success running the SWF on a different machine.

    JJ
    March 4, 2009
    Amit,

    It doesn't matter what web server your SWF lives on -- it doesn't change the URL used to call a resource on Flash Media Server.

    1. With the default configuration of FMS, put your streams here when you're using the vod application:
    \applications\vod\media

    2. In your NetConnection.connect() call, connect to the application, like this: nc = new NetConnection();
    nc.connect("rtmp://serveraddress/vod");

    In the NetStream.play() call, specify the stream name like this:
    ns = new NetStream(nc);
    ns.play("mp4:fileName.f4v");

    For serveraddress you can use the IP address or the domain name, just as you would identify any server.
    Amit_FxAuthor
    Participant
    March 6, 2009
    Thank you very much for your response. Actually I am using an extended videoDisplay player(FX Video Player) for streaming the video so on the source i can put like "rtmp://vod/mp4:test.mov", for streaming and i don't need to ns.connect(nc); or ns.play() coz I can put the url and it can play easily. Its working fine locally. But whenever i put the url like "rtmp://serverName or IP address/vod/mp4:test.mov" its not working as the swf and the videos are different server.

    Thanks,
    Amit
    ghost31379
    Inspiring
    March 4, 2009
    hrmmmm......
    Try this out...make a new folder in your FMS rootinstall/applications folder
    so in applications folder on FMS new folder "myvideos"......
    then make another folder inside that folder and call it "streams"
    then make another folder inside that folder and call it "videofiles"
    and place the videos inside there.....
    so it looks like FMS/applications/myvideos/streams/videofiles
    when connecting to the the server try calling like this
    "rtmp://servername/myvideos/videofiles"
    servername = equal actual ip address......thats how i call mine and it should work....you may be able to use less folders but looking at mine that is working thats how i call it......so make sure you use ipaddress for some odd reason.

    thelegendaryghost.......
    Participating Frequently
    March 3, 2009
    The uri you specified is "rtmp:/myserver.com/vod/sample". I believe you're missing an extra '/' before your server. It should be rtmp:// (2 slashes).

    Also, I assume this is a typo, but you mentioned your FMS server is on myserver.net, but your rtmp url you mentioned refers to myserver.com.

    The reason rtmp:/vod works is because rtmp:/ means the token after the slash is the app name, and server is running on localhost.
    Amit_FxAuthor
    Participant
    March 4, 2009
    Thanks buddy,

    Yes i did mistake on my previous post. I just want to know how to stream videos from a different server.
    Say, my FMS server is A and my swf file is in B server. I want to play videos from VOD directory of server A from B server. Then what will be the url? I had put "rtmp://server-A/vod/mp4:fileName.f4v". But its not working. But when I put the swf file on server A and put the url "rtmp://vod/mp4:fileName.f4v" then its working fine. I just want to know how to call videos from different fms server for streaming and what will be the exact url for that.

    Thanks,
    Amit