Speed Control of MediaPlayer in Android

前端 未结 6 1360
别那么骄傲
别那么骄傲 2020-11-28 09:41

I am developing a player app and I am using MediaPlayer for that.

Now, I want to change the speed of the playing track.

I\'ve seen so many apps with this fu

6条回答
  •  Happy的楠姐
    2020-11-28 10:02

    The MediaPlayer class doesn't give this functionality. Instead use the SoundPool class. It has a method called setRate (int streamID, float rate). Read this for further info. Here is a sample code for you to work with it.

提交回复
热议问题