Problems with MediaPlayer, raw resources, stop and start

前端 未结 7 684
天命终不由人
天命终不由人 2020-12-25 12:37

I\'m new to Android development and I have a question/problem.

I\'m playing around with the MediaPlayer class to reproduce some sounds/music. I am playing raw resou

相关标签:
7条回答
  • 2020-12-25 13:09

    MR. Rectangle, this message maybe too late for it, but I proudly write these codes to your idea: I have mp for mediaplayer and sescal9 is a button.

    ....
    if(btnClicked.getId() == sescal9_ornek_muzik.getId())
            {
                mp.start();
                mp.seekTo(380);
                mp2.start();
                mp2.seekTo(360);
                mp3.start();
                mp3.seekTo(340);
                ...
                }
    
    0 讨论(0)
提交回复
热议问题