Skip to main content
October 14, 2010
Answered

A question about Applications FMIS/FMSS

  • October 14, 2010
  • 1 reply
  • 1107 views

Hello all,

With great help here I am learning to make FMS (Developer) work for me before I decide on purchasing either FMSS or FMIS.

I am now able to understand Tom Green's tutorials much better and make use of the information. His 3rd tutorial in the 7-part guide to FMS leaves me with a couple of questions.

- Unless I misread, he says that you can use the VOD folder in FMSS to stream from but FMIS requires the use of _definst_ folders?

- If I have 100 videos and I use FMIS, do I create a _definst_ for each one?

- Is there anything preventing one from using the _definst_ thing with FMSS?

I have another question that loosely relates to this but I'll post it in another thread as it is a littl emuch to bundle with this inquiry.

Thank you in advance!

Sincerely,

wordman

    This topic has been closed for replies.
    Correct answer SE_0208

    I don't think its that complicated but can understand at times things can be little overwhelming at the start.

    I will try to explain little bit here:

    application - In order to do any task with FMS, you need to connect to FMS and to particular application. Now "application" can have user-defined logic - in that case you will need to write your code in file called "main.asc" which needs to be present under the application which you create. Now if yours needs don't call for any server-side code - then its just blank application. FMS comes with ready to use applications "live" and "vod" (but they are specially packaged applications which you cannot modify - they are signed applications - please don't get confuse here - if you want we can talk about this later)

    streams - Now for "VOD" you will not find any "streams" folder instead you will find media folder where all your media files would be present. Now when you create your own application, you will need to create streams folder under your application folder. Under streams you will need to create "_definst_" folder and keep all your media files here - but thats not compulsion. "_definst_" just indicates default instance - that means whenever anyone connects to to your application without specifying any instance name - it will connect to _definst_

    I also see that you want to separate out your files according to genre - i will give most simple solution where you don't have to write any server-side code

    So lets take example

    You want to create application named "firstapp" and you have three media files  rock.mp3, jazz.mp3 and hip-hop.mp3 (i am not not music expert - but all these files are of say different genre)

    So first create folder named "firstapp" under "applications" directory of FMS.

    Now under folder "firstapp", create folder called "streams". Now under "streams" create 3 folders - "rock","jazz" and "hiphop". Now place rock.mp3 inside "rock" folder, jazz.mp3 inside "jazz" folder and hip-hop.mp3 inside "hiphop" folder.

    Now you are ready to go with some client-side coding:

    So client who chooses to listen to rock, we need to connect using connect uri as :- "rtmp://<server-ip>/firstapp/rock" and stream name as "mp3:rock.mp3"

    So similarly others would connect accordingly :

    Connect using - "rtmp://<server-ip>/firstapp/jazz"   and play "mp3:jazz.mp3"

    "rtmp://<server-ip>/firstapp/hiphop"   and play "mp3:hip-hop.mp3"

    Hope this helps - but i would seriously recommend you read FMS docs starting with

    http://help.adobe.com/en_US/flashmediaserver/devguide/index.html (you will find other docs on same page i suppose)

    So

    1 reply

    calmchessplayer
    Inspiring
    October 14, 2010

    you use 1 _definst_ folder for all your video files  for each application that you create inside the applications directory or you use the streams folder of the applications instance...this is a bit complex to explain without pictures but here is structure applications/app/_definst_/all_flv.flv>>>>>or>>>>>applications/app/instance0/streams/all_flv.flv

    October 14, 2010

    ccp,

    Many thanks. And you're right, it is certainly a more complex monster than words can describe. Just how many folders can be used with this system? I may want to use a number of them based on genre.

    I'm also lost with the applications vs streams thing. I thought this was all about streaming (I'm not interested in progressive).

    I seem to be missing something here...

    Thanks for helping to shed a bit of light though!

    Sincerely,

    wordman

    calmchessplayer
    Inspiring
    October 14, 2010

    you mix all your genere files into a single folder then use client side and server side code to seperate the files based on file name i suggest you name your files numerically so that you can keep the generes sepereate....genere 1 =mygenere0.mp3 anothergenere00.mp3....anothergenere000.mp3 firstgenere1.mp3 secondgenere01.mp3  thirdgenere001.mp3

    when you attach video http:// or  locally(buffering) it is progressive when you play it from rtmp:// (media server)it is streaming(non buffering)