Skip to main content
January 25, 2009
Question

Streaming video from subfolder

  • January 25, 2009
  • 5 replies
  • 751 views
Hello,
can someone explain me please how i can stream working from subfolder?
I have FMS 3.0 licensed, the videos in the main media folder work fine, but when i try
to stream from subfolder it doesnt. I can see the connection and stream in server logs,but nothing showing in player.
Thank You.
    This topic has been closed for replies.

    5 replies

    Participant
    January 29, 2009
    I got mine to work now. The problem for me was the html files that I am looking at were from the fms2.0 that used to look like this

    file=name.flv
    streamer=rtmp://IPADDR/vod/subfolder/....

    I changed that to
    file=subfolder/name.flv

    and behold, all my flv files work now.

    thanks for the clue, Jay!
    January 28, 2009
    I've used JW player for videos in subfolders without issue.

    The VOD application is configured to look in the /media directory for video files. So, you can put your videos in VOD/media/subfolder, but not in VOD/anotherfolder.

    If you want to use other directories for your videos, you can configure virtual directories in an Application.xml file in your application folder.
    January 29, 2009
    Hi Jay,
    sorry i werent clear enough - i did configured a virtual directory and so far from this directory i got streaming w/o any problem, the problem start when i try to stream from subfolder of this directory.
    This virtual directory, if i understand it correctly are equivalent to /vod/media directory. So, if they are equivalent, basically i can not get stream from /vod/media/subfolder, when from /vod/media its working w/o problem.

    Thank You.
    January 27, 2009
    Well, the fact that you get a live stream when the video file doesn't exists says that the player you are using does not define whether to play a live or recorded stream. Calling to play a nonexistant video without setting the start flag to 0 or better results in FMS creating a live stream.

    Unfortunately, without seeing the code for the NetConnection and NetStream, I'm at a loss as to what else to suggest.
    January 27, 2009
    Well - the player i work with is jwplayer for web and flvplayer2.0 for checking from my pc without setting video on webpage first. I also checked it with some other web players with same result, so if im understand correctly there is no normal way to do it? I mean by default FMS can not do it? Do i need custom player for this or other custom application? Or i just need to check the server itself? may be i did something wrong there?
    Thank You
    Participant
    January 27, 2009
    I am having exactly the same problem on my FMS3.5 server. I recently purchased it and installed it on RH. I created a 'vod' app and my flv's would ONLY work if i have a duplicated copy in the /vod folder. Basically, i am calling the flv file via vod/subfolder/name.flv from my html's. this will only work if i have name.flv duplicated in the vod folder.

    This is totally new to me. If someone has the solution, i would love to know please!

    thanks!
    January 26, 2009
    That's really not enough to go on... there is no "regular" player. What I'm trying to understand is how the player is taking the connection and stream name parameters.

    When you supply connection info to the player, what does it look like? If it's something like:

    rtmp://mysite.com/application/folder/streamname.flv

    Then try adding an extra slash between the application and folder, like this:

    rtmp://mysite.com/application//folder/streamname.flv
    January 27, 2009
    HI Jay - thank you fro trying to help me, sorry that i am so noob to all this - i was succeed to make the FMS works with all the tutorials , but this issue its just something i cant go over till now.

    Anyway - when player connecting its look like you said :
    working :
    rtmp://mysite.com/application/streamname.flv

    one im trying to make work:
    rtmp://mysite.com/application/folder/streamname.flv

    i have found something about subfolders on the net, its look like there is need to be added name of some instance between the application and folder - its look pretty similar to your suggestion to add the extra slash, the results :

    rtmp://mysite.com/application/instance/folder/streamname.flv - same as if no instance added,that means - player says file is playing and i see stream in FMS, but dont see it actually in player.

    with your suggestion of extra slash:
    rtmp://mysite.com/application//folder/streamname.flv - not working at all - no player and no FMS showing stream in logs.

    The only difference between the streams i see in FMS logs:
    working - it says 'Stored'
    not working - it says 'Live'.

    Thank You.
    January 26, 2009
    Are you coding the connection and stream yourself, or are you using the FLVPlayback component?
    January 26, 2009
    I use regular (not custom) player on webpage.