{"id":4256,"date":"2021-11-12T19:53:19","date_gmt":"2021-11-12T11:53:19","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4256"},"modified":"2022-04-11T18:13:36","modified_gmt":"2022-04-11T10:13:36","slug":"handle-audio-device-updates","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/android-toolkit\/handle-audio-device-updates\/","title":{"rendered":"Handle Audio Device Updates: Android SDK &#8211; Video API"},"content":{"rendered":"\n<p>The notification on any addition or modification in the Audio Devices such as earphones or headphones connected to the Mobile device is provided through the following Callbacks: <\/p>\n\n\n\n<p><strong>Callbacks<\/strong>:<\/p>\n\n\n\n<ul><li><code>onNotifyDeviceUpdate <\/code>&#8211; Acknowledgment to the user when a switch to alternate media devices is made at run-time.<\/li><li><code>onDeviceAdded <\/code>&#8211; Notification to the user when a new Audio Device is connected.<\/li><li><code>onDeviceRemoved <\/code>&#8211; Notification to the user when an Audio Device is disconnected.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">public void onDeviceAdded(String message) {\n\t\/\/ New Device added\n}\n\npublic void onDeviceRemoved(String message) {\n\t\/\/ Device removed\n}\n\npublic void onNotifyDeviceUpdate (String message) {\n\t\/\/ Device switched\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=\"..\/update-stream-configuration\/\"><\/a><a href=\"..\/update-stream-configuration\/\">Update Stream Configuration<\/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=\"..\/handle-application-switch\/\">Handle Application Switch<\/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 notification on any addition or modification in the Audio Devices such as earphones or headphones connected to the Mobile device is provided through the following Callbacks: Callbacks: onNotifyDeviceUpdate &#8211; Acknowledgment to the user when a switch to alternate media devices is made at run-time. onDeviceAdded &#8211; Notification to the user when a new Audio Device is connected. onDeviceRemoved &#8211; Notification to the user when an Audio Device is disconnected.&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3740,"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 notification on any addition or modification in the Audio Devices such as earphones or headphones connected to the Mobile device is provided through the following Callbacks: Callbacks: onNotifyDeviceUpdate &#8211; Acknowledgment to the user when a switch to alternate media devices is made at run-time. onDeviceAdded &#8211; Notification to the user when a new Audio&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4256"}],"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=4256"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4256\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3740"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}