{"id":4706,"date":"2021-12-03T20:00:08","date_gmt":"2021-12-03T12:00:08","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4706"},"modified":"2025-02-22T20:29:34","modified_gmt":"2025-02-22T12:29:34","slug":"get-devices","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/flutter-toolkit\/get-devices\/","title":{"rendered":"Get Media Devices: Flutter SDK &#8211; Video API"},"content":{"rendered":"\n<ul><li><a href=\"#get-devices\">Get list of Audio Devices<\/a><\/li><li><a href=\"#get-selected-devices\">Get selected Audio Device by User<\/a><\/li><\/ul>\n\n\n\n<a name=\"get-devices\"><\/a>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2>Get a list of Audio Devices<\/h2>\n\n\n\n<p>You will need to specify Audio\/Video Device ID (Microphone &amp; Camera Device ID) or use the default Microphone Device ID of your Mobility Device to initiate a Stream. Portal provides API support to get a list of Audio Devices  (Microphone) available with your Device running the Client End Point application along with their device IDs. <\/p>\n\n\n\n<p>The <code>getDevices()<\/code> method is used to return a List containing all the Microphones available with your Device. You can build UI Element with the List to choose a Microphone to use for Stream. <\/p>\n\n\n\n<p><strong>Method<\/strong>: <code>public List &lt;String&gt; getDevices() <\/code>&#8211; No parameter needed<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">List&lt;dynamic&gt; deviceList= EnxRtc.getDevices();\n\/\/ Returns [SPEAKER_PHONE, WIRED_HEADSET, EARPIECE, BLUETOOTH, NONE ]<\/pre>\n\n\n\n<a name=\"get-selected-devices\"><\/a>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2>Get selected Audio Device by User<\/h2>\n\n\n\n<p><code>EnxRoom.getSelectedDevice()<\/code> method is used to get the selected or used Audio Device for the Stream. <\/p>\n\n\n\n<p><strong>Method<\/strong>: <code>static Future&lt;String&gt; getSelectedDevice()<\/code> &#8211; No parameter needed<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">String deviceName = EnxRtc.getSelectedDevice();<\/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=\"..\/how-to-use\/\">How to use Flutter SDK<\/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-connection\/\">Room Connection<\/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>Get list of Audio Devices Get selected Audio Device by User Get a list of Audio Devices You will need to specify Audio\/Video Device ID (Microphone &amp; Camera Device ID) or use the default Microphone Device ID of your Mobility Device to initiate a Stream. Portal provides API support to get a list of Audio Devices (Microphone) available with your Device running the Client End Point application along with their&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3755,"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":"Get list of Audio Devices Get selected Audio Device by User Get a list of Audio Devices You will need to specify Audio\/Video Device ID (Microphone &amp; Camera Device ID) or use the default Microphone Device ID of your Mobility Device to initiate a Stream. Portal provides API support to get a list of Audio&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4706"}],"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=4706"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4706\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3755"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}