{"id":4827,"date":"2021-12-08T20:44:36","date_gmt":"2021-12-08T12:44:36","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4827"},"modified":"2025-04-04T21:28:29","modified_gmt":"2025-04-04T13:28:29","slug":"live-media-statistics","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/cordova-toolkit\/live-media-statistics\/","title":{"rendered":"Live Media Statistics: Cordova\/Ionic SDK &#8211; Video API"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>For debugging purposes, you can get live statistics of each stream(local or remote) you are playing at any endpoint. The following information for each stream is displayed using an Overlay over the respective player:<\/p>\n\n\n\n<ul><li>For Local Streams<ul><li><em>Transmission Bandwidth<\/em><\/li><li><em>Video Resolution<\/em> <\/li><\/ul><\/li><li>For Subscribed Streams<ul><li><em>Receiving Bandwidth<\/em><\/li><li><em>Video Resolution<\/em><\/li><li><em>Available Bandwidth for Remote User<\/em><\/li><li><em>Packet Loss<\/em><\/li><\/ul><\/li><\/ul>\n\n\n\n<p><strong>Method:<\/strong> <code>enableStats (isEnabled)<\/code><\/p>\n\n\n\n<p><strong>Parameters: <\/strong><\/p>\n\n\n\n<ul><li><code>@param {boolean} isEnabled<\/code>:  Boolean. Use <em>true<\/em> to enable streaming statistics and <em>false<\/em> to disable. <\/li><\/ul>\n\n\n\n<p><strong>Event Listeners:<\/strong><\/p>\n\n\n\n<ul><li><code>onAcknowledgeStats<strong> <\/strong><\/code>\u2013 It notifies the user when the streaming stats are enabled successfully<\/li><li><code>onReceivedStats <\/code>\u2013 When all streaming stats are received<\/li><li><code>onPlayerStats<\/code> &#8211; When player&#8217;s stream stats is received<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ To enable stats\nwindow.EnxRtc.enableStats(true);\n\n\/\/ Add Event Listeners\n\/\/ Acknowledged that stream stats is enable or disable.\nwindow.EnxRtc.addEventListner(\"onAcknowledgeStats\", function\n{\n(data)console.log(JSON.stringify(data.data));\n});\n\/\/ All Streams stats.\nwindow.EnxRtc.addEventListner(\"onReceivedStats\",function (data)\n{\nconsole.log(JSON.stringify(data.data));\n});\n\/\/ Particular Streams stats.\nwindow.EnxRtc.addEventListner(\"onPlayerStats\",function (data)\n{\nconsole.log(JSON.stringify(data.data));\n});<\/pre>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>\u2190 <a href=\"..\/configure-view\/\"><\/a><a href=\"\/developer\/video-api\/client-api\/cordova-toolkit\/configure-view\/\">Configure View<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\"><\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-center\"><a href=\"..\/\">Index<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-right\"> <a href=\"..\/audio-only-mode\/\">Audio Only Mode<\/a>  \u2192<a href=\"\/developer\/how-to-use\/\"><\/a><\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For debugging purposes, you can get live statistics of each stream(local or remote) you are playing at any endpoint. The following information for each stream is displayed using an Overlay over the respective player: For Local Streams Transmission Bandwidth Video Resolution For Subscribed Streams Receiving Bandwidth Video Resolution Available Bandwidth for Remote User Packet Loss Method: enableStats (isEnabled) Parameters: @param {boolean} isEnabled: Boolean. Use true to enable streaming statistics and&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3719,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ub_ctt_via":""},"featured_image_src":null,"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"featured":false,"featured-large":false},"uagb_author_info":{"display_name":"vcxdevwpadmin","author_link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/author\/vcxdevwpadmin\/"},"uagb_comment_info":0,"uagb_excerpt":"For debugging purposes, you can get live statistics of each stream(local or remote) you are playing at any endpoint. The following information for each stream is displayed using an Overlay over the respective player: For Local Streams Transmission Bandwidth Video Resolution For Subscribed Streams Receiving Bandwidth Video Resolution Available Bandwidth for Remote User Packet Loss&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4827"}],"collection":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/comments?post=4827"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4827\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3719"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}