{"id":4359,"date":"2021-11-18T13:32:40","date_gmt":"2021-11-18T05:32:40","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4359"},"modified":"2022-04-08T18:39:03","modified_gmt":"2022-04-08T10:39:03","slug":"live-media-statistics","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/ios-toolkit\/live-media-statistics\/","title":{"rendered":"Live Media Statistics: iOS SDK &#8211; Video API"},"content":{"rendered":"\n<p>The <code>EnxRoom.enableStats()<\/code> method allows you to receive Statistics for all the Streams being received in the Room. The statistics help you analyze the streaming quality of all the Streams by providing information about the Streams such as:<\/p>\n\n\n\n<ul><li>Publishing Resolution<\/li><li>Bandwidth at Publisher&#8217;s end<\/li><li>Receiving Resolution<\/li><li>Receiving Bandwidth consumed<\/li><li>Available Bandwidth at Receiver&#8217;s end<\/li><\/ul>\n\n\n\n<p><strong>Class<\/strong>:&nbsp;<code>EnxRoom<\/code><\/p>\n\n\n\n<p><strong>Method<\/strong>:&nbsp;<code>-(void)enableStats:(BOOL)isEnabled<\/code>&nbsp;<\/p>\n\n\n\n<p><strong>Parameter:<\/strong> <\/p>\n\n\n\n<p><code>isEnabled<\/code>&nbsp;\u2013 BOOL. Set to&nbsp;<em>true&nbsp;<\/em>to enable stats and&nbsp;<em>false&nbsp;<\/em>to disable them.<\/p>\n\n\n\n<p><strong>Delegate Method:<\/strong><\/p>\n\n\n\n<ul><li><code>-didAcknowledgeStats:<\/code>\u2013 Acknowledgment to the user when stream stats are enabled or disabled.<\/li><li><code>-didReceiveStats:&nbsp;<\/code>\u2013 Notification to the user when all streams stats is received.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ To enable stats at Room Level\n[enxRoom enableStats:true];\n\n\/\/ To get to know stats has been enabled or disabled \n-(void)didAcknowledgeStats: ( NSArray * _Nonnull)subUnSubResponse{\n\n} \n\n\/\/Delegate to receive room level stats\n-(void)didReceiveStats: ( NSArray * _Nonnull)statsData{\n\n}<\/pre>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3>Receive Stream Statistics for Individual Streams<\/h3>\n\n\n\n<p>The <code>EnxPlayerView.enablePlayerStats()<\/code> method allows you to individually receive statistics of Streams being played on the player. Please note, to receive individual stream stats, you also need to enable stats at room level using <code>EnxRoom.enableStats()<\/code> method.<\/p>\n\n\n\n<p><strong>Class<\/strong>:&nbsp;<code>EnxPlayerView<\/code><\/p>\n\n\n\n<p><strong>Method:<\/strong>&nbsp;<code>-(void)enablePlayerStats:(BOOL)isEnabled<\/code> <\/p>\n\n\n\n<p><strong>Parameter:<\/strong><\/p>\n\n\n\n<p><code>isEnabled<\/code>&nbsp;\u2013 BOOL. Set to&nbsp;<em>true&nbsp;<\/em>to enable stats and&nbsp;<em>false&nbsp;<\/em>to disable.<\/p>\n\n\n\n<p><strong>Delegate Method<\/strong>:&nbsp;<\/p>\n\n\n\n<p><code>-didPlayerStats:<\/code>\u2013 Notification to the user when player&#8217;s stream stats is received.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ To enable player's stream stats\n[enxPlayer enablePlayerStats:true];\n\n\/\/Delegate to receive player's stream stats\n-(void)didPlayerStats: ( NSArray * _Nonnull)statsData{\n \n} <\/pre>\n\n\n\n<p><strong>Error Codes \/ Exceptions<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Code<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>5075<\/td><td>Repeated Stream Stats Subscription request as a previous request is in process.<\/td><\/tr><tr><td>5076<\/td><td>Repeated Stream Stats Unsubscription request as a previous request is in process.<\/td><\/tr><tr><td>5077<\/td><td>Repeated Stream Stats request while Stream stats is already subscribed.<\/td><\/tr><tr><td>5078<\/td><td>Unsubscribing Stream Stats is not permitted without subscribing to it.<\/td><\/tr><tr><td>5079<\/td><td>Unable to unsubscribe to Stream Stats while Subscription request is in process.<\/td><\/tr><tr><td>5080<\/td><td>Stream Stats Unsubscription request is in process. <\/td><\/tr><\/tbody><\/table><\/figure>\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=\"..\/floor-access-control\/\"><\/a><a href=\"..\/floor-access-control\/\">Lecture Mode<\/a><\/p>\n<\/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=\"..\/talker-noise-notification\/\">Get Talker Notification<\/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>The EnxRoom.enableStats() method allows you to receive Statistics for all the Streams being received in the Room. The statistics help you analyze the streaming quality of all the Streams by providing information about the Streams such as: Publishing Resolution Bandwidth at Publisher&#8217;s end Receiving Resolution Receiving Bandwidth consumed Available Bandwidth at Receiver&#8217;s end Class:&nbsp;EnxRoom Method:&nbsp;-(void)enableStats:(BOOL)isEnabled&nbsp; Parameter: isEnabled&nbsp;\u2013 BOOL. Set to&nbsp;true&nbsp;to enable stats and&nbsp;false&nbsp;to disable them. Delegate Method: -didAcknowledgeStats:\u2013 Acknowledgment to&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3732,"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":"The EnxRoom.enableStats() method allows you to receive Statistics for all the Streams being received in the Room. The statistics help you analyze the streaming quality of all the Streams by providing information about the Streams such as: Publishing Resolution Bandwidth at Publisher&#8217;s end Receiving Resolution Receiving Bandwidth consumed Available Bandwidth at Receiver&#8217;s end Class:&nbsp;EnxRoom Method:&nbsp;-(void)enableStats:(BOOL)isEnabled&nbsp;&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4359"}],"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=4359"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4359\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3732"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}