Tuesday, February 18, 2014
android2.2 when playing video, images and intercept any point in time saved [online]
Such as the title,
Why do I cut the image is black screen, MediaPlayer source, there are public native Bitmap getFrameAt (int msec) throws IllegalStateException; method, but not the outside world, to see its realization under C:
/ / FIXME: deprecated
static jobject
android_media_MediaPlayer_getFrameAt (JNIEnv * env, jobject thiz, jint msec)
{
return NULL;
}
Did not realize; There are other methods to achieve?<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Haha, sofa
Reply:
Forgotten, and, using a SurfaceView display video, image capture screen shots is the size of the video window, rather than the entire screen simulator, first thank you
Reply:
Can consider the interception of the entire simulator (mobile) screen,
Then according to the vertical coordinate values of the left and right of the video window, the video window image cut out from the
Reply:
Ah, thank you, and look forward to there are other ways,
Reply:
Avatar interested in the LZ. . . . Is waited on it? Crown Xige sister Cecilia began with a self-timer. . You tragedy. .
Reply:
Sigh. . . . It seems that you are very busy, ah, the way to answer, the anti-recognized avatar; question you could help me to get? ?
Reply:
But how to get the whole screen by code ah? Instead screenshot tool, thank you
Reply:
Upper not get contents of the current frame, because the video display is OVerlay to achieve, not the framebuffer. After decoding the data directly to the OVerlay shows.
Reply:
Meaning that there is no solution to it?
Reply:
There are ideas you can consider,
By such a screenshot surfaceview -> canvas-> bitmap
Reply:
This you need to increase the number of media framework layer interfaces can be easily implemented
Reply:
Anyway, the resulting pictures are black and have tried the test, huh. .
Reply:
Expect solutions
Reply:
Reply:
11th Floor, neighborhoods under specific ideas please?
Reply:
Coincidentally recent projects engage this feature, to share my findings (in fact failed)
It first interception of mobile local video can be achieved using methods
MediaMetadataRetriever the getFrameAtTimeNetwork video with a view of the crawl cache, it is black, with MediaMetadataRetriever the getFrameAtTime way out is black, crawl / dev/graphics/fb0 the buffer, also black, confused birds. . .
Reply:
The landlord did not solve the problem I have now is doing the demand for advice? ? ?
Reply:
Learn about the interception of the local video thumbnail. . .
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment