{"id":4111,"date":"2021-11-08T19:27:13","date_gmt":"2021-11-08T11:27:13","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4111"},"modified":"2022-04-08T15:51:35","modified_gmt":"2022-04-08T07:51:35","slug":"play-stream","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/web-toolkit\/play-stream\/","title":{"rendered":"Play Stream: Web SDK &#8211; Video API"},"content":{"rendered":"\n<p>The <code>EnxStream.play()<\/code> method allows you to play any Stream in an HTML5 audio or video player within HTML DOM. This creates a related audio\/video HTML tag within the given HTML DOM Element ID to play the video or audio. <\/p>\n\n\n\n<p><strong>Class:<\/strong> EnxStream<\/p>\n\n\n\n<p><strong>Method<\/strong>:  <code>EnxStream.play(DOMElementID, PlayerOpt)<\/code> <\/p>\n\n\n\n<p><strong>Parameters<\/strong>:<\/p>\n\n\n\n<ul><li><code>DOMElementID<\/code> &#8211; DIV ID in which the Player is drawn.<\/li><li><code>PlayerOpt <\/code>&#8211; Configurable Player options. <a href=\"..\/..\/appendix\/#player-options\">Refer Appendix<\/a> for the complete list.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ Configure Desired Player Options\nvar PlayerOpt = {\n     player: {\n         'height': '150px',\n         'width': '100%',\n         'minHeight': 'inherit',\n         'minWidth': 'inherit'\n     },\n     toolbar: {\n         displayMode: false,\n         branding: {\n             display: false\n         }\n     }\n };\n\nstream.play(\"PlayerDiv\",  PlayerOpt);<\/pre>\n\n\n\n<a name=\"stop-play\"><\/a>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3>Stop Playing Video<\/h3>\n\n\n\n<p>The EnxStream.stop() method allows you to stop playing Audio\/Video Stream in the HTML5 player.<\/p>\n\n\n\n<p><strong>Class:<\/strong> EnxStream<\/p>\n\n\n\n<p><strong>Method:<\/strong><code> EnxStream.stop()<\/code> &#8211; No parameter required.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">stream.stop();<\/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=\"..\/receiving-video-quality\">Set Desired Video Quality<\/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=\"..\/stream-information\/\">Know Your Stream<\/a>  \u2192 <\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The EnxStream.play() method allows you to play any Stream in an HTML5 audio or video player within HTML DOM. This creates a related audio\/video HTML tag within the given HTML DOM Element ID to play the video or audio. Class: EnxStream Method: EnxStream.play(DOMElementID, PlayerOpt) Parameters: DOMElementID &#8211; DIV ID in which the Player is drawn. PlayerOpt &#8211; Configurable Player options. Refer Appendix for the complete list. \/\/ Configure Desired Player&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":"The EnxStream.play() method allows you to play any Stream in an HTML5 audio or video player within HTML DOM. This creates a related audio\/video HTML tag within the given HTML DOM Element ID to play the video or audio. Class: EnxStream Method: EnxStream.play(DOMElementID, PlayerOpt) Parameters: DOMElementID &#8211; DIV ID in which the Player is drawn.&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4111"}],"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=4111"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4111\/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=4111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}