Skip to main content
Participating Frequently
June 7, 2007
Question

Stupid Newbie need help

  • June 7, 2007
  • 3 replies
  • 441 views
Good Day ..
I've installed FMS2 ... copied application(ion) into the application folder .. but any attempt to connect fails .. the uri I'm using is ..
http://192.168.0.10/ion/SharedFiles/Precautions.flv
any ideas ???

    This topic has been closed for replies.

    3 replies

    hisheirsAuthor
    Participating Frequently
    June 8, 2007
    I'm missing something very basic here ...
    my client side code is ...

    theVid = "rtmp://192.168.0.10/ion/SharedFiles/Precautions.flv"

    NetCon = new NetConnection();
    NetCon.connect(null);
    NetStrm = new NetStream(NetCon);
    VidWin.attachVideo(NetStrm);
    NetStrm.play(theVid)

    if I bypass FMS e.g. theVid = "P:/Program Files/Macromedia/Flash Media Server 2/applications/ion/SharedFiles/Precautions.flv"

    it works ...
    the FMS management console sees the server .. the application instance .. but I cannot get the client to connect .. ???
    June 8, 2007
    Put the following mapping in your Vhost file and try again

    <VirtualDirectory>
    <Streams>SharedFiles;P:/Program Files/Macromedia/Flash Media Server 2/applications/ion/SharedFiles</Streams>
    </VirtualDirectory>


    hisheirsAuthor
    Participating Frequently
    June 8, 2007
    THANKS for the response ..
    That's exactly what I have .. a swf w/ a embedded flv player ..
    the flv plays fine if I reference it locally .. but for some reason I can not connect to FMS ...
    June 7, 2007
    You need to create a Flash swf from where you will access the Video(.flv) file. The url you will be using in the fla will look like rtmp://<IP of FMS>/<appliaction>/<instance>/<stream name>