{"id":4847,"date":"2021-12-10T15:10:47","date_gmt":"2021-12-10T07:10:47","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4847"},"modified":"2025-02-23T13:18:27","modified_gmt":"2025-02-23T05:18:27","slug":"active-talkers","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/cordova-toolkit\/active-talkers\/","title":{"rendered":"Active Talkers: Cordova\/Ionic SDK &#8211; Video API"},"content":{"rendered":"\n<h4>Table of Contents<\/h4>\n\n\n\n<ul><li><a href=\"#get-max-talkers\">Get Maximum Permissible Talker Count<\/a><\/li><li><a href=\"#get-talker-count\">Get Talker Count<\/a><\/li><li><a href=\"#set-talker-count\">Set Talker Count<\/a><\/li><\/ul>\n\n\n\n<a name=\"get-max-talkers\"><\/a>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3>Get maximum permissible Talker Count<\/h3>\n\n\n\n<p>To know the maximum permissible Active Talkers that you may receive and you can set, you may use <code>window.EnxRtc.getMaxTalkers()<\/code> method. <\/p>\n\n\n\n<p><strong>Method<\/strong>:  <code>getMaxTalkers()<\/code>  &#8211; without parameter <\/p>\n\n\n\n<p><strong>Event Listener<\/strong>:   <code>onMaxTalkerCount<\/code> &#8211; Gets maximum talker allowed in the room<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">window.EnxRtc.getMaxTalkers();\nwindow.EnxRtc.addEventListner(\"onMaxTalkerCount\",\nfunction (data)\nconsole.log(JSON.stringify(data.data));\n});<\/pre>\n\n\n\n<a name=\"get-talker-count\"><\/a>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3>Get Talker Count<\/h3>\n\n\n\n<p>It may be necessary to know how many talkers are expected to receive <code>onActiveTalkerList<\/code> Event Listener, i.e. to know either the preset value of talkers or any custom value in effect which is either by the Application Developer or opted by End-Point User.<\/p>\n\n\n\n<p><strong>Method<\/strong>:  <code>getTalkerCount()<\/code>&#8211; without parameter<\/p>\n\n\n\n<p><strong>Event Listener<\/strong>:   <code>onGetTalkerCount<\/code> &#8211; Gets Talker count<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">window.EnxRtc.getTalkerCount();\nwindow.EnxRtc.addEventListner(\"onGetTalkerCount\",\nfunction (data)\n{\nconsole.log(JSON.stringify(data.data));\n});<\/pre>\n\n\n\n<a name=\"set-talker-count\"><\/a>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3>Set Talker Count<\/h3>\n\n\n\n<p>The Portal sets a maximum of 6 active talkers in the active talker-list with\u00a0 <code>onActiveTalkerList<\/code> Active Talkers. However, you may opt to receive less talkers at a Client End Point if you so require. This may either be a predefined value, or this value may be set at run-time in a connected session. If needed, you can create UI for the connected user to opt for number of active-talkers the user wants to receive.<\/p>\n\n\n\n<p><strong>Method<\/strong>:   <code>setTalkerCount(numTalkers)<\/code><\/p>\n\n\n\n<p><strong>Parameters<\/strong>:&nbsp;<code>@param {Number} numTalkers<\/code>\u2013 No. of talkers you want to receive. Range 0-6<\/p>\n\n\n\n<ul><li>If you set&nbsp;<code>numTalkers <\/code>to any value from 1 to 6 \u2013 you will receive those many talkers in the list.<\/li><li>If you set&nbsp;<code>numTalkers <\/code>to 0 (zero), then list doesn\u2019t become empty. Rather, you would start receiving 3 audio streams only. Video Streams will not be carried.<\/li><\/ul>\n\n\n\n<p><strong>Event Listener<\/strong>:  <code>onSetTalkerCount<\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">window.EnxRtc.setTalkerCount(4);\nwindow.EnxRtc.addEventListner(\"onSetTalkerCount\",\nfunction (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=\"..\/mute-unmute-audio-of-subscribed-streams\/\"><\/a><a href=\"..\/mute-unmute-audio-of-subscribed-streams\/\">Mute \/ Unmute Audio of Subscribed Streams<\/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=\"..\/room-information\/\">Room Information<\/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>Table of Contents Get Maximum Permissible Talker Count Get Talker Count Set Talker Count Get maximum permissible Talker Count To know the maximum permissible Active Talkers that you may receive and you can set, you may use window.EnxRtc.getMaxTalkers() method. Method: getMaxTalkers() &#8211; without parameter Event Listener: onMaxTalkerCount &#8211; Gets maximum talker allowed in the room window.EnxRtc.getMaxTalkers(); window.EnxRtc.addEventListner(&#8220;onMaxTalkerCount&#8221;, function (data) console.log(JSON.stringify(data.data)); }); Get Talker Count It may be necessary to know&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":"Table of Contents Get Maximum Permissible Talker Count Get Talker Count Set Talker Count Get maximum permissible Talker Count To know the maximum permissible Active Talkers that you may receive and you can set, you may use window.EnxRtc.getMaxTalkers() method. Method: getMaxTalkers() &#8211; without parameter Event Listener: onMaxTalkerCount &#8211; Gets maximum talker allowed in the room&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4847"}],"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=4847"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4847\/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=4847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}