{"id":6828,"date":"2022-09-21T21:13:39","date_gmt":"2022-09-21T13:13:39","guid":{"rendered":"https:\/\/doc.smartflomeet.ttns.in\/developer\/?page_id=6828"},"modified":"2022-09-21T21:14:19","modified_gmt":"2022-09-21T13:14:19","slug":"take-image-snapshot","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/android-toolkit\/take-image-snapshot\/","title":{"rendered":"Take Image Snapshot of Video Stream: Android 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>Observer<\/strong>: <code>EnxPlayer.setScreenShotObserver<\/code><\/p>\n\n\n\n<p><strong>Method<\/strong>: <code>public void captureScreenShot(EnxScreenShotObserver enxScreenShotObserver)<\/code><\/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\">\/\/Set observer\nenxPlayer.setScreenShotObserver(this)\n\n\/\/Capture Snapshot\nenxPlayer.captureScreenShot(this);\n\n\/\/Snapshot captured.\npublic void OnCapturedView(Bitmap bitmap);\n\/\/ bitmap is the Bitmap Image  <\/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.. Observer: EnxPlayer.setScreenShotObserver Method: public void captureScreenShot(EnxScreenShotObserver enxScreenShotObserver) Callbacks: OnCapturedView&#8211; Receives Bitmap Image&#8217; \/\/Set observer enxPlayer.setScreenShotObserver(this) \/\/Capture Snapshot enxPlayer.captureScreenShot(this); \/\/Snapshot captured. public void OnCapturedView(Bitmap bitmap); \/\/ bitmap is the Bitmap Image<\/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":"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.. Observer: EnxPlayer.setScreenShotObserver Method: public void captureScreenShot(EnxScreenShotObserver enxScreenShotObserver) Callbacks: OnCapturedView&#8211; Receives Bitmap Image&#8217; \/\/Set observer enxPlayer.setScreenShotObserver(this) \/\/Capture Snapshot enxPlayer.captureScreenShot(this); \/\/Snapshot captured. public void OnCapturedView(Bitmap bitmap); \/\/ bitmap&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/6828"}],"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=6828"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/6828\/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=6828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}