播放视频和摄像头preVIEW时捕获屏幕拍摄的Android手机上 [英] Capture screen shot on Android phone when playing video and camera preview
问题描述
我有两个HTC手机,一个是HTC渴望,另一种是HTC咏叹调。我使用DDMS之前捕捉HTC渴望的截图,它工作正常。不过最近我买了一个HTC咏叹调,我发现相机preVIEW和视频播放(例如YouTube视频)做截图的时候,结果变黑。
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.
我想这可能是一些叠加的问题,但就是无法弄清楚如何捕捉摄像头preVIEW截图。
I think that might be some overlay issue, but just can't figure out how do capture screenshots on camera preview.
推荐答案
对不起,这大概是不可能的。在此之前的Android 3.0的截图DDMS设施是由以帧缓冲区的副本完成。为在覆盖(通常与视频播放的情况下)表面上,这不会在帧缓冲区所以不能包括在截图存在
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.
这篇关于播放视频和摄像头preVIEW时捕获屏幕拍摄的Android手机上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!