javaandroidscreenshotopentoktokbox

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.


Solution

  • 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