开发者

Android: I need a button that kills anything played by the MediaPlayer

I have an app that plays several different audio files on a loop, via several different buttons. I want to program a single button that will stop the MediaPlayer, regardless of what audio file is currently being played. Any help with this would开发者_如何学Python be greatly appreciated.


Call stop() on your MediaPlayer object to stop the playback of whatever the MediaPlayer is playing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜