Skip to main content
Inspiring
October 16, 2006
Question

Basic FLV question

  • October 16, 2006
  • 5 replies
  • 587 views
Can someone please help me. we wish to stream flv files using Flash Media
Server 2. we have installed the program however we are at a loss as to how
to get things to work.



For instance. were do we put the FLV files. and how do we access them from
within flash?



Let me explain. we have set the flash media server up to use a dedicated IP
address. for example 90.90.90.90 we have created a separate folder within
the applications folder of FMS2 called folder1 and within this there is a
separate folder _definst_ and within this folder we have put our video file.
video.flv - these are all on our dedicated hosting server.



Now when using flash 8 on our standalone development computer. we try to
import a video. we select the already deployed option. as that seems most
appropriate. but whatever we enter results in a failure to load flv.



We have tried rtmp://90.90.90.90/folder1/video.flv



Help.. What do we do.



Steve



PS = Applogies, but the lack of documentation has me stumped and I daresay
these questions have been asked a thousand times previously... your help is
appreciated.


    This topic has been closed for replies.

    5 replies

    November 3, 2006
    Do you have the FMS properly configured to stream video?

    You need to access the program files>macromedia>flash media server> applications>

    In the applications folder create a folder to represent your application (myvideos for example)
    In that folder create a sub-folder and label it "streams" (without the quotes of course)
    in the streams folder create another subfolder labled "_definst_" (again- without quotes)

    Put yopur flv files in the _definst_ folder (this is the default instance folder)

    Almost done,

    Now do a search and find a copy of "main.asc"

    Put the main asc file in the application folder you created (my videos for example)

    Finally, create a player or use the Flash8 video component to call that flv you want to stream. If you are using a net.stream object you will not need the .flv extension. If you decide to use the Flash Component your content path shoul not include the "Streams" folder of=r the "_definst_" folder. In other words to call an flv named "ourvaction.flv" in the _definst_ ; of the streams folder; of the myVideo folder you would use a content path of:

    rtmp:/myVideos/ourVaction.flv n(note the single "/")

    if the FMS is remote to your application:

    rtmp://someremoteserver/myVideos/ourVaction.flv

    Just in case, here's a sample, simple ns.object you can try by placing in the first frame of your action layer with a video instance named myVideo

    var nc:NetConnection = new NetConnection();
    //change the "myvideos" to your application instance name
    nc.connect("rtmp:/myvideos");
    var ns:NetStream = new NetStream(nc);
    myVideo.attachVideo(ns);

    //insert you flv file name below without the .flv extension

    ns.play("flv file name here")
    ns.setBufferTime(2);

    A lot of info here so if you need help or clarification message me and I will be glad to help. Learning this can be frustrating but worth it.

    RB

    Participant
    November 11, 2006
    Hi, I'm not sure what I'm doing wrong. I've tried establishing a connection with a RTSM that has Flash Media Server 2 installed. The code I am using to connect and play is:

    ncConnection = new NetConnection();
    ncConnection.connect("rtsm://209.58.253.190/VideoSource");
    //ncConnection.connect(null); -- this is what I used to test that the player worked with local FLVs
    nsStream = new NetStream(ncConnection);
    mcVideoHolder.vVideo.attachVideo(nsStream);
    nsStream.play("sizzle_400");
    nsStream.setBufferTime(2);

    I don't know if those lines of code are the issue, yet I'm not sure how to check if the connection to the RTSM was actually established. If anyone can help me it would be much appreciated.

    The link where the streaming video should reside is:
    streaming example page - the video is on the far right, next to the car. I know the player is rough, I just need it to work right now.

    derek@kierimage.com

    My work in progress is: www.vectorflash.net
    November 12, 2006
    I am not sure I know what "rtsm" is, I use rtmp.

    Also you need a ns.play(some flv here w/out flv extension)
    November 2, 2006
    PLEASE !!!! I have the post right before this one. I'm in a world of hurt guys, and I've noticed 3 of you have attempted to work with this post. I"m desperate at this point. Please take a look at my post number 1210851. I would love to get a response from anyone
    Inspiring
    October 16, 2006
    Anyone else any ideas...
    This is rather an annoying issue...

    thanks

    Steve


    October 16, 2006
    It would be helpful if you could post the code you're using to create you netconnection and nestream. That way, we can figure out where you're going wrong.
    Participant
    November 2, 2006
    I think he may be using the "import video" option, in which case you should be able to provide the URL to the FLV. I am having this same problem right now?
    Inspiring
    October 16, 2006
    Thanks Rob

    Tried rtmp://70.84.16.102/dbngp/video

    And sunfortunately I still get the error...

    Steve



    "robnewport" <webforumsuser@macromedia.com> wrote in message
    news:eguqbb$f3a$1@forums.macromedia.com...
    > Hey there, try leaving off the .flv extension when you enter the path to
    > the flv. For example: rtmp://www.weburban.com/testmovies/mymovie
    >
    > Good luck!
    >
    > -Rob.
    > http://www.weburban.com


    October 16, 2006
    Hey there, try leaving off the .flv extension when you enter the path to the flv. For example: rtmp://www.weburban.com/testmovies/mymovie

    Good luck!

    -Rob.
    http://www.weburban.com