Capture screen shot on Android phone when playing video and camera preview

落爺英雄遲暮 提交于 2019-12-10 14:35:20

问题


I have two HTC phones, one is HTC desire and another is HTC aria. I'm using ddms to capture the screenshot on HTC desire before, it works fine. However recently I buy one HTC aria, and I found when doing screenshot on camera preview and video playing (e.g. youtube clips), the result goes black.

I think that might be some overlay issue, but just can't figure out how do capture screenshots on camera preview.


回答1:


Sorry, this is probably just not possible. Prior to Android 3.0, the DDMS screenshot facility was done by taking a copy of the framebuffer. For surfaces in an overlay (often the case with video playback), this doesn't exist in the framebuffer so can't be included in the screenshot.



来源:https://stackoverflow.com/questions/4241464/capture-screen-shot-on-android-phone-when-playing-video-and-camera-preview

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