{"id":5595,"date":"2022-02-01T12:04:06","date_gmt":"2022-02-01T04:04:06","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=5595"},"modified":"2025-02-24T17:50:21","modified_gmt":"2025-02-24T09:50:21","slug":"how-to-use","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/web-toolkit\/how-to-use\/","title":{"rendered":"How to use Web SDK?"},"content":{"rendered":"\n<ul><li>Download the SDK and extract the archive to get the following file: <ul><li><code>EnxRtc.js<\/code> &#8211; The standard library to communicate with The Portal Signalling &amp; Media Servers.<\/li><\/ul><\/li><li>Use the EnxRtc.js file in your HTML file to utilize the SDK to build the powered Client End Point Application. Refer the following Code snippet:  <\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;html&gt;\n&lt;head&gt;\n&lt;script language=\"javascript\" src=\"path\/EnxRtc.js\"&gt;&lt;\/script&gt;\n&lt;\/head&gt;\n&lt;body&gt;&lt;\/body&gt;\n&lt;\/html&gt;<\/pre>\n\n\n\n<a name=\"error-exception\"><\/a>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2>Errors &amp; Exceptions<\/h2>\n\n\n\n<p>When the Web SDK API call fails, it returns a JSON object through Callback as shown:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{\n\t\"result\": Number,\n\t\"error\": \"String\",\n\t\"desc\": \"String\"\n}<\/pre>\n\n\n\n<ul><li><code>result<\/code> &#8211; Number. Error Code. <\/li><li><code>error<\/code> &#8211; String. Error Message.<\/li><li><code>desc<\/code> &#8211; String. Optional. Descriptive explanation of the  error. <br><\/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\"><\/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=\"..\/get-devices\/\">Get Media Device Access<\/a> \u2192<a href=\"\/developer\/how-to-use\/\"><\/a><\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Download the SDK and extract the archive to get the following file: EnxRtc.js &#8211; The standard library to communicate with The Portal Signalling &amp; Media Servers. Use the EnxRtc.js file in your HTML file to utilize the SDK to build the powered Client End Point Application. Refer the following Code snippet: &lt;html&gt; &lt;head&gt; &lt;script language=&#8221;javascript&#8221; src=&#8221;path\/EnxRtc.js&#8221;&gt;&lt;\/script&gt; &lt;\/head&gt; &lt;body&gt;&lt;\/body&gt; &lt;\/html&gt; Errors &amp; Exceptions When the Web SDK API call fails, it&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3724,"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":"Download the SDK and extract the archive to get the following file: EnxRtc.js &#8211; The standard library to communicate with The Portal Signalling &amp; Media Servers. Use the EnxRtc.js file in your HTML file to utilize the SDK to build the powered Client End Point Application. Refer the following Code snippet: &lt;html&gt; &lt;head&gt; &lt;script language=\"javascript\"&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/5595"}],"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=5595"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/5595\/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=5595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}