I am working on an app which should save the displayed content of a webview. The problem is that when the webview displays streamed content (like a YouTube video) the screenshot returns just a black rectangle - as there is no actual image. If I take a screenshot with volume & power button the screenshot does contain the actual frame of the video, which would be exactly what I need. Unfortunately this stops my app for a moment, as the screenshot creates a new overlay. I have already created two questions on SO, none of the solutions worked so far:
Take a screenshot of a video in a webview android
Android - capture exactly what the screen displays (video/stream) - save it as image on device