Skip to main content
January 22, 2013
Question

Different questions regarding FMS 3.5

  • January 22, 2013
  • 1 reply
  • 336 views

Hi,

I'm a newby to FMS and I have several questions ;-).

I'm planning an livestream. To get as much viewer as possible my plan ist to stream with 3 different bitrates. This works great ;-). But within my tests a few problems/ideas came up...

1. FMS is not recording the stream. I used Auto-DVR as well as manual start stop. I also prefixed mp4: ... any ideas? Is it perhaps because it is not the "interactive" one?

2. Is there a _simple_ possibility to to enable something like "autoquality" (between the 3 streams) on the client side? So that the best solution for the local connection is chosen?

3. Is there a simple possibility to get viewerstats?

Thanks a lot for your help

    This topic has been closed for replies.

    1 reply

    January 23, 2013

    Hi,

    1. You can record the livestream on the server by creating a custom application and doing a server side record. Your main.asc would be something like this :

    var pubCount = 0;

    application.onConnect=function(clientObj){

              trace("          on connect ");

              return true;

    };

    application.onDisconnect=function(clientObj){

              trace("          on disconnect ");

    };

    application.onPublish = function(clientObj,streamObj){

      trace("          in application publish : " + streamObj.name);

      if(pubCount <= 1)

           streamObj.record("record");

      else

           streamObj.record("append");

      pubCount++;

    }

    application.onUnpublish = function(clientObj,streamObj){

    trace("on unpublish : " + streamObj.type + ":" + streamObj.name);

    streamObj.record(false);

    }

    2. You can do this by using dynamic streaming. You'll find more information here : http://www.adobe.com/devnet/adobe-media-server/articles/dynstream_advanced_pt1.html

    3. You can get various viewer stats using admin APIs. Full reference of the APIs available here : http://help.adobe.com/en_US/FlashMediaServer/3.5_Server_Management_ASD/flashmediaserver_3.5_administrationapi.pdf. getAppStats() may be particularly useful.

    Hope this helps. Please let me know if you have any other queries.

    Thanks,

    Apurva