MediaPlayer.create() always returns null

前端 未结 2 1548
别那么骄傲
别那么骄傲 2020-12-02 02:30

I have used the mediaplayer before, and I have never had this problem. Whenever I try to use MediaPlayer.create(), the method gives me null, and I can\'t play my sounds. Is

2条回答
  •  一整个雨季
    2020-12-02 03:02

    The create() API returns null if it somehow failed.

    The reason in this case is due to a corrupt mp3 file.

提交回复
热议问题