Skip to main content
September 23, 2011
Question

how to see current clients connected to live stream

  • September 23, 2011
  • 1 reply
  • 2040 views

I want to see how many people are viewing my live stream.  I see one client connected which I assume is the encoder, however, which stat tells me the number of current connections watching the live stream?  I see 'connected' but that number never changes.. Even if I have two different internet connections watching the live stream and I disconnect them I don't see any stats change.

    This topic has been closed for replies.

    1 reply

    September 23, 2011

    okay... I tried the getlivestream URL but got the below error.  Do I need to enable something on the server to allow these requests?

    <result><level>error</level><code>Admin.API.MethodNotAllowed</code><description>getlivestreams - Method not allowed!</description><timestamp>9/23/2011 10:05:38 AM</timestamp></result>

    Participating Frequently
    September 23, 2011

    Yes if you are trying to use HTTP way then you needs to allow http commands which you want to use. Please open Users.xml and you will see:

    <AdminServer>

            <HTTPCommands>

                <!-- Enable or disable using HTTP requests to execute admin commands.     -->

                <!-- Set to "true" to enable, otherwise it will be disabled.  The           -->

                <!-- actual commands permitted for server admin and virtual host admin    -->

                <!-- users can be set in the Allow and Deny elements.                                       -->

                <Enable>${USERS.HTTPCOMMAND_ALLOW}</Enable>

                <!-- List of server admin commands that can be accessed via HTTP.         -->

                <!-- Add multiple commands separated by commas.  "All" indicates          -->

                <!-- every command (it's not recommended to allow all commands).          -->

                <!-- Seperate multiple commands with commas.                              -->

                <Allow>ping</Allow>

                <!-- List of server admin commands denied access via HTTP.                -->

                <!-- Add multiple commands seperated by commas.  "All" indicates          -->

                <!-- every command.                                                       -->

                <Deny>All</Deny>

                <!-- Processing order for deny and allow command lists.  "Deny,Allow"     -->

                <!-- means the command will be allowed if the command is in the allow     -->

                <!-- list or not in the deny list.   "Allow,Deny" means the command       -->

                <!-- will be allowed if it is in the allow list and not in the            -->

                <!-- deny list.                                                           -->

                <Order>Deny,Allow</Order>

            </HTTPCommands>

        </AdminServer>

    if you observer - only ping is allowed by default for HTTP commands, so modify it and restart Admin Server.

    Same above commands are available via RTMP too.

    Make sure you your admin port 1111 is not accessible for outside world as security measure.