Android - capture exactly what the screen displays (video/stream) - save it as image on device

做~自己de王妃 提交于 2019-12-11 03:19:21

问题


I am working on an application which rates the content of a view. I use a webview and connect to a server where either a livestream from a camera or a youtube video is being played. In another area the user is supposed to touch and rate what he sees. On Touchdown I would like to create an image of the current state of the (web)view which is connected to the server.

getDrawingCache(); does not do the job, as it returns only a black rectangle for the content. I think I need something which accesses the GPU-data, but I don't know how to do that.

来源:https://stackoverflow.com/questions/31262513/android-capture-exactly-what-the-screen-displays-video-stream-save-it-as-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!