问题
I need to implement a requriment of adjust play speed when playing a video, how can I do that using Android API (MediaPlayer) or other 3rd-party library? I google it, and no any idea by far. Any suggestions welcome, thank you.
回答1:
Media player does not provide what you want. You have to use some other android api.
check link. Speed Control of MediaPlayer in Android
Or you can use media player with PlaybackParams(added in 23 api)
https://developer.android.com/reference/android/media/PlaybackParams.html
回答2:
You can also use different media playback library than android built in, for example ExoMedia that also works below android 23 ,has same api as video view and allow you to set the PlaybackParams including speed.
来源:https://stackoverflow.com/questions/42777444/how-to-adjust-play-speed-of-video-on-android