Skip to main content
Participant
February 27, 2009
Question

Help in flash media server administration API

  • February 27, 2009
  • 2 replies
  • 488 views
Hi all,
From the flash admin manual i got to know that by using the getLiveStreams() API i should be able to get all the live instances on FMS. However in my client when i use nc.call("getLiveStreams",responder); i am not getting any live instances of the FMS.
Could any one guide on how to use the API . DO i need to set any values / variables prior to making this call ?
Any help would be greatly appreciated
    This topic has been closed for replies.

    2 replies

    Participating Frequently
    March 3, 2009
    Your call to "getLiveStreams" is missing arguments. Look at Jody's example of calling the admin API's via http. There is an argument "appInst" which specifies the name of the application instance for which you want to query for live streams.

    So you can either do it via http as Jody mentions, or via ActionScript by including the app name as an argument.

    nc.call("getLiveStreams", responder, "app/inst");

    where "app" is the name of your application, and "inst" is the name of your instance name. I believe you can just specify the app name if you are using the default instance (_definst_). But specifying _definst_ is fine as well.
    February 28, 2009
    Remember, you need to make a NetConnection to the Admin server -- check out the code in the section "Call Administration API methods over RTMP":
    http://help.adobe.com/en_US/FlashMediaServer/3.5_AdminGuide/WS5b3ccc516d4fbf351e63e3d119f292633e-7ff8.html

    Also, you can test the API call by entering the HTTP in a browser like this:
    http://www.example.com:1111/admin/getLiveStreams?auser=username&apswd=password&appInst=name

    HTH,
    Jody