Skip to main content
Participating Frequently
Jun 7, 2007 6:10 PM UTC
Question

Stupid Newbie need help

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 is closed to new replies. Start a new post to keep the conversation going.

    5 replies

    hisheirsAuthor
    Participating Frequently
    Jun 8, 2007 2:14 PM UTC
    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 .. ???
    Translate
    Jun 8, 2007 3:29 PM UTC
    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>


    Translate
    hisheirsAuthor
    Participating Frequently
    Jun 8, 2007 12:39 PM UTC
    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 ...
    Translate
    Jun 7, 2007 8:31 PM UTC
    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>
    Translate