Skip to main content
Participating Frequently
November 1, 2012
Answered

How do I check to see if there is an active AMS stream using ColdFusion?

  • November 1, 2012
  • 1 reply
  • 1685 views

I have an active AMS server that is receiving input from another computer running Flash Media Live Encoder. The AMS server then provides a feed using the livepkgr application for consumption through a JWPlayer on a ColdFusion page. Is it possible for ColdFusion Server to somehow hit the AMS server and find out if there is an active / published stream or not?

Ideally, I'd like to build a page that automatically displays the JWPlayer when there is a livepkgr feed that is published / active and hide the JWPlayer when the AMS server is not serving any active streams. We are standardized on ColdFusion server so any direction or even CF code that will help me ping the AMS server for that info would be appreciated.

Thanks!

Rick

This topic has been closed for replies.

1 reply

NpCompleteCorrect answer
Adobe Employee
November 2, 2012
rickzkiAuthor
Participating Frequently
November 5, 2012

Hi Nitin,

Thanks for pointing me in the correct direction! I was able to call the API commands via HTTP as instructed, however, it appears that the getLiveStreams method (as well as many others) is disallowed under an AMS 5 Starter install. Within the API documents it comments that the availability of this method is limited to Flash Communication Server 1.0. Just to make sure I at least tried, I did check the Users.xml file and updated the permissions for my administrative user to allow all and deny nothing. After trying that to no success I also tried explicitly stating methods that would be allowed. This did not seem to have an impact either. I did restart the AMS from the Admin Console after each change ot the XML file.

Any additional guidance would be appreciated.

Thanks!

Rick

rickzkiAuthor
Participating Frequently
November 5, 2012

Well, I guess it takes more than a simple AMS restart from the Administrative Console.

To anyone who might find this useful, you will need to edit the following element in the AMS.ini file:

Users.HTTPCommand_Allow = true

Then, you will need to edit the Users.xml file in the <AdminServer><HTTPCommands> block to allow for the specific methods you want to be able to call via HTTP request. My install defaulted to allowing only ping and denying everything else.

From there, it took a hard restart of my actual server for AMS to recognize the changes in the AMS.ini and Users.xml files. Restarting from the AMS Administration Console did not do the trick.