Android MediaPlayer bug when using reset() and release() calls

前端 未结 4 1384
面向向阳花
面向向阳花 2021-02-07 01:06

The bug I\'m seeing is on the calls to reset() and release() never returning thus leaving my application in an indefinitely stopping state. It doesn\'t matter if I call stop() b

4条回答
  •  礼貌的吻别
    2021-02-07 01:29

    If you are developing for API level 16 or above, I strongly suggest you toss the crappy MediaPlayer and use Exoplayer from Google.

    I did and never looked back. Since I also support API level 15, I have an abstraction to use the standard MediaPlayer when in that API and Exoplayer when in 16 (or 17 can't remember now).

    It's not perfect, but it's a lot better and I've seen much much better buffering.

提交回复
热议问题