{"id":3730,"date":"2021-10-01T18:27:19","date_gmt":"2021-10-01T10:27:19","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=3730"},"modified":"2025-02-24T16:41:15","modified_gmt":"2025-02-24T08:41:15","slug":"enxrtc","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/web-toolkit\/enxrtc\/","title":{"rendered":"EnxRtc Base Class: Web SDK \u2013 Video API"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote\"><p>The Portal Base Class contains methods to connect to a room and successfully publish a stream in it.  It also offers methods to perform vital functions like media queries, run-time device updates for streams etc. To start using it, an Object must be created using EnxRtc Constructor.<\/p><\/blockquote>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2>Methods<\/h2>\n\n\n\n<p>The table below shows a list of methods in the EnxRtc Class.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Manage Media Devices<\/strong><\/p>\n\n\n\n<ul><li><a rel=\"noreferrer noopener\" href=\"..\/get-devices\/\" target=\"_blank\"><code>getDevices()<\/code><\/a> &#8211; To find a list of devices such as Camera and Microphone attached to the device running the Client Application.<\/li><li><a rel=\"noreferrer noopener\" href=\"..\/switch-camera-mic-speaker\/#switch-camera-mic\" target=\"_blank\"><code>switchMediaDevice()<\/code><\/a> &#8211; To switch Audio and Video source of your published Stream to another Camera and Microphone connected to your device.<\/li><li><a href=\"..\/bitrate-status-of-client\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>clientBitrate()<\/code><\/a> &#8211; To provide bitrate status of the Client.<\/li><\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Diagnosis<\/strong><\/p>\n\n\n\n<ul><li><a href=\"..\/pre-call-test\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>clientDiagnostics<\/code><\/a> &#8211; To diagnose various WebRTC related issues by running through a set of predefined test cases.<\/li><\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Join Session<\/strong><\/p>\n\n\n\n<ul><li><a rel=\"noreferrer noopener\" href=\"..\/room-connection\/#join-room\" target=\"_blank\"><code>joinRoom()<\/code><\/a> &#8211; To connect Client Endpoint to a video Room and join an RTC Session with or without a published stream.<\/li><\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Console Logging<\/strong><\/p>\n\n\n\n<ul><li><a href=\"..\/console-logging\/#set-log-level\"><code>setLogLevel()<\/code><\/a> &#8211; To connect Client Endpoint to a video Room and join an RTC Session with or without a published stream.<\/li><li><a href=\"..\/console-logging\/#get-log-dump\"><code>setOutputFunction()<\/code><\/a> &#8211; \u00a0Allows you to access the logs apart from the browser console such as by sending it via mail or by creating a UI.<\/li><li><a href=\"..\/console-logging\/#share-log\"><code>postClientLogs()<\/code><\/a> &#8211; Allows to send latest 500 lines of console logs to the Portal.<\/li><\/ul>\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=\"..\/audio-only-mode\/\">Audio Only 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=\"..\/enxroom\/\"><\/a><a href=\"..\/enxroom\/\">EnxRoom \u2013 Room Handler<\/a> \u2192<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Portal Base Class contains methods to connect to a room and successfully publish a stream in it. It also offers methods to perform vital functions like media queries, run-time device updates for streams etc. To start using it, an Object must be created using EnxRtc Constructor. Methods The table below shows a list of methods in the EnxRtc Class. Manage Media Devices getDevices() &#8211; To find a list of&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3724,"menu_order":1,"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 Portal Base Class contains methods to connect to a room and successfully publish a stream in it. It also offers methods to perform vital functions like media queries, run-time device updates for streams etc. To start using it, an Object must be created using EnxRtc Constructor. Methods The table below shows a list of&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3730"}],"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=3730"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3730\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3724"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=3730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}