简体   繁体   中英

Take screenshot of subscriber in opentok Android

I want to take screen shot of subscriber frame in opentok Android . I am able to take screen shot of other xml components but not able to take screenshot of the opentok subscriber.

Can anyone help me for this?

Thanks in advance.

If you only need to take a screenshot of the subscriber video, you could have a look at this sample repository , You just need to add ScreenshotVideoRenderer to your subscriber object and call ((ScreenshotVideoRenderer) subscriber.getRenderer()).saveScreenshot() to get the subscribers screenshot which is stored in phone storage. Let me know in case you need any further assistance required from my side.

Thanks

Arjun: We tried the code sample provided by Opentok ( https://github.com/opentok/opentok-android-sdk-samples/tree/main/Live-Photo-Capture-Kotlin ) but it is not working. It captures green screen. Do you mind sharing your code?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM