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:
reference to the third floor changy reply:
can consider the interception of the entire simulator (mobile) screen,
Then based on the video window up and down around the coordinate values, which cut out the image of the video window


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:
references, 5th Floor smile__lv reply: Avatar interested
on the LZ. . . . Is waited on it? Crown Xige sister Cecilia began with a self-timer. . You tragedy. .


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:
references, 4th Floor username_gyy reply:
reference to the third floor changy 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 image cut out from the video window


Ah, thank you, and look forward to there are other ways,,
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:
reference to the 8th floor qizuyong reply:
top can not get the content of the current frame, because the video display is OVerlay to achieve, not the framebuffer. After decoding the data directly to the OVerlay shows.


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:
reference to the 10th floor changy reply:
there are ideas you can consider,

By such a screenshot surfaceview -> canvas-> bitmap


Anyway, the resulting pictures are black and have tried the test, huh. .
Reply:
Expect solutions
Reply:
The reply was deleted at the moderator 2011-05-27 14:55:27

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. . .

No comments:

Post a Comment