Skip to main content
Participant
September 5, 2009
Question

Help me to start with FMS

  • September 5, 2009
  • 1 reply
  • 971 views

Dear flock , thank you very much to for your time to read my post.

Honestly I am  beginner to this FMS word , I do now something about flash ( flash 5 ooooh it is to old )

Cos I decide to go to server side administrating , now I am a Linux server Administrator , some clients asked me about hosting FMS , and I can not say “NO” .

Any I don’t have any actionscript knowledge , or flex . but I am a php programmer so I can under stand the logic.
honestly I did read the PDFs that adobe provides, it is a very long way . so many information while you need just a small things. So I decide to ask adobe flock.
my problem :
well I have some problem I will sort each one so you may help me to solve these problems
1- I note that ay one how know the URL of the rtmp can open a stream to my server with no problem and he can link any flash player to the url , and take advantage of this service.
eg : if you open the FMLE(the encoder) and put the URL rtmp://111.111.111.111/live/yourname_or_any_thing , you can start broadcasting , I think we have to set a list of allowed “streams name” in somewhere on the server , so no one can use take this advantage , but how can we do something like this .

2- how can limit the number of people , how watching the stream in the same time, not for all stream on the server , I think each stream will have an individual setting in some where.

please may you help me , this is what I need to know as start and when I have any thing new , I am sure that all can help .

Thank you very much

    This topic has been closed for replies.

    1 reply

    Participant
    September 5, 2009

    Dear all ,


    i did read a lot of thing about controling the server viea main.asc

    but i tide a lot of thing regarding , and there is no luke ,

    eg:


    i did create an main.ascin in

    C:\Program Files\Adobe\Flash Media Server 3\applications\live\


    and just for test i did set in it this code :


    application.onAppStart = function()
    {
        application.disconnect(application.clients.agent);
    };



    i can under stand that wehn the FMLE is start sending the stram to the server , it will desconnect !


    but nothing happend .


    ok i told my self it maybe if any user start the flash player in my website ,


    i did start the flash player and the steem was viwed .


    BTW:

    to solve the 1st problem , that i list in my pervios post i think we have to have a txt file content all stramanme that has the right to be online ,

    how can i get the stremname by action script and hpw can i load the txt file to check if the streamname is listed or not






    Participant
    September 5, 2009

    FYI: i did a lot of thing arround , like :


    i did create a main.asc in :

    C:\Program Files\Adobe\Flash Media Server 3\applications\live\


    to be :

    C:\Program Files\Adobe\Flash Media Server 3\applications\live\main.asc

    ------------------------------------------------------------------------------------------------------------------------------------------------------------

    now i did add to main.acs this code :

    application.onConnect = function(client, name) {
        trace("TRACE -- TRACE -- TRACE -- TRACE -- TRACE -- TRACE");
    }

    ------------------------------------------------------------------------------------------------------------------------------------------------------------

    as the help files said :

    The output of the trace() statements used by a main.asc file are sent to a log file, typically:
    RootInstall/logs/_defaultVHost_/yourApplicationName/yourInstanceName/application.xx.log
    Where yourInstanceName is _definst_ by default, and xx is the instance number, 00 for the most recent log file, 01
    for the previous instance, and so forth.
    You can view a log file with any text editor.
    ))

    i opened "Flash Media Live Encoder 3" and point the stream to "rtmp://localhost/live/stream" hist start , traming is start well,

    i went to the log to see if it true that FMS will write the trace !

    C:\Program Files\Adobe\Flash Media Server 3\logs\_defaultVHost_\live\stream\application.00.log

    where the "stream" is the the name of the "instance"

    i did not found any thing regarding the "trace("TRACE -- TRACE -- TRACE -- TRACE -- TRACE -- TRACE");"


    Please advice