Get current frame from android mediaplayer

拥有回忆 提交于 2019-12-25 03:40:41

问题


Is there a way to retrieve the current frame played from android MediaPlayer object?


回答1:


No. The media player just setups a pipeline that is handled by lower level components. And depending on the hardware platform and the decoder setup the rendering is done in different places.




回答2:


This is a pretty heavy undertaking, involving Android NDK development using something like ffmpeg and glbuffer. You could also bypass OpenGL and just write the ffmpeg-decoded frame to a bitmap in memory.

For getting video thumbnails, there is always ThumbnailUtils.



来源:https://stackoverflow.com/questions/5155292/get-current-frame-from-android-mediaplayer

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