{"id":6829,"date":"2022-09-21T21:19:05","date_gmt":"2022-09-21T13:19:05","guid":{"rendered":"https:\/\/doc.smartflomeet.ttns.in\/developer\/?page_id=6829"},"modified":"2022-09-21T21:20:16","modified_gmt":"2022-09-21T13:20:16","slug":"take-image-snapshot","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/cordova-toolkit\/take-image-snapshot\/","title":{"rendered":"Take Image Snapshot of Video Stream: Cordova\/Ionic SDK &#8211; Video API"},"content":{"rendered":"\n<p>This is to take snapshot of a video stream in your application. The image from the video stream will be captured and returned as Bitmap Image to the Callback..<\/p>\n\n\n\n<p><strong>Method<\/strong>: <code> window.EnxRtc.captureScreenShot(streamId) <\/code><\/p>\n\n\n\n<p><strong>Parameter<\/strong>: <code>streamId <\/code>&#8211; Stream ID for the stream for which snapshot is to be taken.<\/p>\n\n\n\n<p><strong>Callbacks<\/strong>: <\/p>\n\n\n\n<ul><li><code>OnCapturedView<\/code> &#8211; Receives Bitmap Image&#8217;<\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> \n\/\/Capture Snapshot\nwindow.EnxRtc.captureScreenShot(streamId);\n\n\/\/Snapshot captured.\nwindow.EnxRtc.addEventListner(\"OnCapturedView\", function (data) {\n\n});\n\/\/ data is Bitmap data  <\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is to take snapshot of a video stream in your application. The image from the video stream will be captured and returned as Bitmap Image to the Callback.. Method: window.EnxRtc.captureScreenShot(streamId) Parameter: streamId &#8211; Stream ID for the stream for which snapshot is to be taken. Callbacks: OnCapturedView &#8211; Receives Bitmap Image&#8217; \/\/Capture Snapshot window.EnxRtc.captureScreenShot(streamId); \/\/Snapshot captured. window.EnxRtc.addEventListner(&#8220;OnCapturedView&#8221;, function (data) { }); \/\/ data is Bitmap data<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3719,"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":"This is to take snapshot of a video stream in your application. The image from the video stream will be captured and returned as Bitmap Image to the Callback.. Method: window.EnxRtc.captureScreenShot(streamId) Parameter: streamId &#8211; Stream ID for the stream for which snapshot is to be taken. Callbacks: OnCapturedView &#8211; Receives Bitmap Image&#8217; \/\/Capture Snapshot window.EnxRtc.captureScreenShot(streamId);&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/6829"}],"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=6829"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/6829\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3719"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=6829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}