6

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.

sunjinbo
  • 2,137
  • 4
  • 22
  • 45
  • It isn't included in the public version yet, but ExoPlayer is working on adding support for adjusting playback speed. One can track the progress of this feature in GitHub: https://github.com/google/ExoPlayer/issues/26 – Nikki Borrelli Mar 14 '17 at 17:27

2 Answers2

5

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

Community
  • 1
  • 1
Keyur Thumar
  • 608
  • 7
  • 19
1

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.

Zain Ali
  • 15,535
  • 14
  • 95
  • 108