gpt4 book ai didi

Android播放器继续回调,缓冲

转载 作者:塔克拉玛干 更新时间:2023-11-02 07:49:16 26 4
gpt4 key购买 nike

我正在使用 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() 但这只会阻止播放器正常播放。

我能做什么?

最佳答案

你确定没有其他东西在后台运行(比如 Pandora)吗?

我发现了您的问题,因为我的机器人正在生成相同的 logcat 消息。然后我意识到我的 Pandora 应用程序已暂停,在结束应用程序后消息停止。

关于Android播放器继续回调,缓冲,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26541875/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com