Android MediaPlayer not playing on Galaxy S6 with Android 5.1.1

前端 未结 1 1961
孤独总比滥情好
孤独总比滥情好 2021-02-14 09:19

I\'m seeing an issue that is specific to the Galaxy S6 running Android 5.1.1. I\'m using MediaPlayer to play audio streams and on this specific configuration of device and Andro

相关标签:
1条回答
  • 2021-02-14 09:54

    It's a partial solution but to my mind it's the most perenne solution. MediaPlayer has been created a long time ago, and therefore is not very flexibile as we want it. I have been using Exoplayer from one year now and last version come with audio playback only. So I guess if you change your implementation of your audio player to use Exoplayer it will solve most issue and later issue.

    Exoplayer is a powerfull player from google developers, available as an external librarie so you don't have to manage buggy implementation on some Android version.

    Exoplayer GitHub
    Exoplayer developer guide

    0 讨论(0)
提交回复
热议问题