我在应用程序中使用MediaPlayer播放在线mp3
文件的音频。
然而,即使播放完成后,控制台仍会显示大量的回调和缓冲。
10-24 08:08:48.467 19221-19233/com.myapp V/MediaPlayer﹕ callback application
10-24 08:08:48.467 19221-19233/com.myapp V/MediaPlayer﹕ back from callback
10-24 08:08:49.468 19221-19232/com.myapp V/MediaPlayer﹕ message received msg=3, ext1=100, ext2=0
10-24 08:08:49.468 19221-19232/com.myapp V/MediaPlayer﹕ buffering 100
10-24 08:08:49.468 19221-19232/com.myapp V/MediaPlayer﹕ callback application
10-24 08:08:49.468 19221-19232/com.myapp V/MediaPlayer﹕ back from callback
10-24 08:08:50.469 19221-19233/com.myapp V/MediaPlayer﹕ message received msg=3, ext1=100, ext2=0
10-24 08:08:50.469 19221-19233/com.myapp V/MediaPlayer﹕ buffering 100
10-24 08:08:50.469 19221-19233/com.myapp V/MediaPlayer﹕ callback application
10-24 08:08:50.469 19221-19233/com.myapp V/MediaPlayer﹕ back from callback
10-24 08:08:51.470 19221-19232/com.myapp V/MediaPlayer﹕ message received msg=3, ext1=100, ext2=0
10-24 08:08:51.470 19221-19232/com.myapp V/MediaPlayer﹕ buffering 100
10-24 08:08:51.470 19221-19232/com.myapp V/MediaPlayer﹕ callback application
10-24 08:08:51.470 19221-19232/com.myapp V/MediaPlayer﹕ back from callback
10-24 08:08:52.471 19221-19233/com.myapp V/MediaPlayer﹕ message received msg=3, ext1=100, ext2=0
10-24 08:08:52.471 19221-19233/com.myapp V/MediaPlayer﹕ buffering 100
10-24 08:08:52.471 19221-19233/com.myapp V/MediaPlayer﹕ callback application
10-24 08:08:52.471 19221-19233/com.myapp V/MediaPlayer﹕ back from callback
10-24 08:08:53.472 19221-19232/com.myapp V/MediaPlayer﹕ message received msg=3, ext1=100, ext2=0
10-24 08:08:53.472 19221-19232/com.myapp V/MediaPlayer﹕ buffering 100
10-24 08:08:53.472 19221-19232/com.myapp V/MediaPlayer﹕ callback application
10-24 08:08:53.472 19221-19232/com.myapp V/MediaPlayer﹕ back from callback
10-24 08:08:54.473 19221-19233/com.myapp V/MediaPlayer﹕ message received msg=3, ext1=100, ext2=0
10-24 08:08:54.473 19221-19233/com.myapp V/MediaPlayer﹕ buffering 100
10-24 08:08:54.473 19221-19233/com.myapp V/MediaPlayer﹕ callback application
10-24 08:08:54.473 19221-19233/com.myapp V/MediaPlayer﹕ back from callback
10-24 08:08:55.473 19221-19232/com.myapp V/MediaPlayer﹕ message received msg=3, ext1=100, ext2=0
10-24 08:08:55.473 19221-19232/com.myapp V/MediaPlayer﹕ buffering 100
10-24 08:08:55.473 19221-19232/com.myapp V/MediaPlayer﹕ callback application
10-24 08:08:55.473 19221-19232/com.myapp V/MediaPlayer﹕ back from callback
10-24 08:08:56.474 19221-19233/com.myapp V/MediaPlayer﹕ message received msg=3, ext1=100, ext2=0
10-24 08:08:56.474 19221-19233/com.myapp V/MediaPlayer﹕ buffering 100
10-24 08:08:56.474 19221-19233/com.myapp V/MediaPlayer﹕ callback application
10-24 08:08:56.474 19221-19233/com.myapp V/MediaPlayer﹕ back from callback
10-24 08:08:57.475 19221-19232/com.myapp V/MediaPlayer﹕ message received msg=3, ext1=100, ext2=0
我尝试在播放器上调用stop()
方法,但这只会导致播放器无法正常播放。
我该怎么办?