MediaPlayer won't loop. setLooping() doesn't work

后端 未结 4 1084
花落未央
花落未央 2021-01-18 05:54
m_MediaPlayer = MediaPlayer.create(context, soundFromResource);
m_MediaPlayer.setVolume(0.99f, 0.99f);
m_MediaPlayer.setLooping(true);
m_MediaPlayer.setOnCompletionL         


        
4条回答
  •  悲哀的现实
    2021-01-18 06:07

    After a lot of experimentation with media player, I have found solution to this :

    call

    m_MediaPlayer.setLoopoing(true)
    

    after

    m_MediaPlayer.start()
    

提交回复
热议问题