RTMP statistics

A new feature implemented in NGINX RTMP is statistics page. It’s an XML document served by a newly created HTTP module within NGINX RTMP plugin. The XML is pretty simple. An XSL stylesheet  stat.xsl is also supplied to watch statistics in browser without any other tools.

Here’s full XML the page above is build on:

<?xml version=”1.0″ encoding=”utf-8″ ?>
<?xml-stylesheet type=”text/xsl” href=”stat.xsl” ?>
<rtmp>
<in>283737441</in>
<out>282142039</out>
<bwin>655568</bwin>
<bwout>640736</bwout>
<server>
<application>
<name>myapp</name>
<live>
<stream>
<name>mystream</name>
<in>203864888</in>
<out>276771808</out>
<bwin>314048</bwin>
<bwout>628104</bwout>
<client><address>127.0.0.1</address><dropped>0</dropped><flashver>LNX 11,1,102,55</flashver><pageurl>http://localhost:8080/</pageurl></client&gt;
<client><address>127.0.0.1</address><dropped>0</dropped><flashver>LNX 11,1,102,55</flashver><pageurl>http://localhost:8080/</pageurl></client&gt;
<client><address>127.0.0.1</address><dropped>0</dropped><publishing/></client>
<nclients>3</nclients>
<publishing/>
</stream>
<stream>
<name>abc</name>
<in>74826873</in>
<out>0</out>
<bwin>329600</bwin>
<bwout>0</bwout>
<client><address>127.0.0.1</address><dropped>0</dropped><publishing/></client>
<nclients>1</nclients>
<publishing/>
</stream>
<nclients>4</nclients>
</live>
</application>
</server>
</rtmp>
Advertisements
  1. #1 by Alessandro on December 20, 2012 - 3:43 am

    Hi seen that the statistics are not working with the ondemand video is right ?
    Thanks
    Alessandro

    • #2 by rarut on December 20, 2012 - 6:05 am

      Yes. But I’m working on it

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: