Monday, May 7, 2012

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>
<client><address>127.0.0.1</address><dropped>0</dropped><flashver>LNX 11,1,102,55</flashver><pageurl>http://localhost:8080/</pageurl></client>
<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>

2 comments:

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

    ReplyDelete