Skip to main content
Participant
December 4, 2006
Question

Streaming Stored Videos

  • December 4, 2006
  • 4 replies
  • 512 views
Hi,

I've just spent a few days reading the documentation and setting up FMS2. I have created an application sub-directory where I've placed my FLV files.

However when I use the debugging feature in the management console the videos don't show up as "stored." I can only debug them when I try and connect through an SWF connection and then view the console at the same time. The problem is that they show up as "Live" and there's nothing to see but a blank playback window. (The video also does not playback in the SWF. I can start, pause and stop the stream but no video or audio is present).

Any ideas where I'm going wrong?
Thanks
    This topic has been closed for replies.

    4 replies

    February 2, 2007
    Interesting. So, let me clarify as I'm new to FMS.

    If I do it like this:

    [FMS Install Dir]\applications\myApp\streams\myInstance\video.flv

    ...make my connection as such:

    var fms_nc:NetConnection = new NetConnection();
    fms_nc.connect("rtmp://servername/myApp");

    ...and played the video like this:

    var fms_ns:NetStream = new NetStream(fms_nc);
    myVideo.attachMovie(fms_ns);
    fms_ns.play("video.flv");

    ...it should find it, correct? Sorry for being so detailed.
    February 2, 2007
    Detail is good. Makes getting to the end easier

    Assuming you're connecting like this:

    fms_nc.connect("rtmp://servername/myApp");

    and playing your file like this:

    fms_ns.play("video.flv");

    Your file should be here


    [FMS Install Dir]\applications\myApp\streams\_definst_\video.flv

    FMS will look for the _definst_ (default instance?), when you don't specify an instance name in the rtmp string, which you aren't. Let's say you changed your rtmp string to look like this:

    fms_nc.connect("rtmp://servername/myApp/myTestInstance");

    then, you'd want the flv to be here:

    [FMS Install Dir]\applications\myApp\streams\myTestInstance\video.flv

    Hope that clears things up.


    February 2, 2007
    Stream names (flv file names) don't show up in the admin console until they're in use. That's why you have to connect to them before you can debug them.

    As for FMs not finding files, the flv's have to be in the application's streams directory. The path to the file should be:

    [FMS Install Dir]\applications\application name\ streams\instance name\file.flv
    February 2, 2007
    I'm running into the same issue.

    I've set up the NetConnection.onStatus and NetStream.onStatus to notify me when there are cnages to either. When I run the SWF, I get the following message:

    NetConnection.Connect.Success
    NetStream.Play.Reset
    NetStream.Play.Start

    But, then nothing happens. There is no video or audio, nothing coming out of the NetStream.OnMetaData listener, and no more status. When I looked at the Management Console under Streams, it shows my computer connected to it as a NetStream type, and the file I'm looking for as a Live type, instead of Stored. I assumed that it was not finding the FLV and thus assuming I was looking for a Live feed, but from what I read in the documentation, if a Live or Recorded stream is not found, I would get back a NetStream.Play.StreamNotFound message.

    There was nothing changed in the Application.xml file for StreamManager - StreamsDir, so, what gives?

    BTW, I've set the NetConnection.connect() to null to find the file in the same directory as my SWF, and the video plays fine. Nothing wrong with my code as far as I can tell.

    Please help! Thanks!
    Participating Frequently
    December 15, 2006
    this may possibly relate to a problem I just posted seeking help with (streaming just 1 file). What is this "stored" visual you speak of? Where in the documentation did you see it?