Does Android support slow-motion video playback?

梦想与她 提交于 2019-12-07 09:30:00

问题


I need to make video player on Android that is able to play in slow motion and with different playback speeds. I still cannot find a native API or some code to do this. Does Android 2.2 - 2.3 support to video slow-motion and can we control the video playback speed?


回答1:


Yes, from API 23 android has PlaybackParams class .It supports adjustment of playback speed of video briefly given here .




回答2:


You can try exploring libVLC for this. VLC player for Android is almost due. Check their website.

Check this thread that discusses how you do it.. http://forum.videolan.org/viewtopic.php?f=14&t=89296

libVLC developer documentation here with normal playback sample. You need to modify this sample to play the video frame by frame or slow down the frame rate.



来源:https://stackoverflow.com/questions/7618239/does-android-support-slow-motion-video-playback

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