使用 just_audiio 的问题
Problems using just_audiio
我一直在尝试 just_audio 播放互联网音频流。我可以使用此地址播放 BBC World 服务:https://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/dash/nonuk/
dash_low/aks/bbc_world_service.mpd
但使用不同的地址:https://stream.live.vc.bbcmedia.co.uk/bbc_world_service 我收到以下错误:
ExoPlayerImpl( 4556): Init d22c684 [ExoPlayerLib/2.13.1] [generic_x86_arm, sdk_gphone_x86_arm, Google, 30]
E/ExoPlayerImplInternal( 4556): Playback error
E/ExoPlayerImplInternal( 4556): com.google.android.exoplayer2.ExoPlaybackException: Source error
E/ExoPlayerImplInternal( 4556): at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:579)
E/ExoPlayerImplInternal( 4556): at android.os.Handler.dispatchMessage(Handler.java:102)
E/ExoPlayerImplInternal( 4556): at android.os.Looper.loop(Looper.java:223)
E/ExoPlayerImplInternal( 4556): at android.os.HandlerThread.run(HandlerThread.java:67)
E/ExoPlayerImplInternal( 4556): Caused by: com.google.android.exoplayer2.ParserException: org.xmlpull.v1.XmlPullParserException: Unexpected token (position:TEXT qÆTÆXq�V��ۄ�$��d...@1:111 in java.io.InputStreamReader@5a94cdd)
E/ExoPlayerImplInternal( 4556): at com.google.android.exoplayer2.source.dash.manifest.DashManifestParser.parse(DashManifestParser.java:107)
E/ExoPlayerImplInternal( 4556): at com.google.android.exoplayer2.source.dash.manifest.DashManifestParser.parse(DashManifestParser.java:62)
E/ExoPlayerImplInternal( 4556): at com.google.android.exoplayer2.upstream.ParsingLoadable.load(ParsingLoadable.java:179)
E/ExoPlayerImplInternal( 4556): at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:415)
E/ExoPlayerImplInternal( 4556): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
两个地址都在 VLC 上播放。
谁能给我解释一下这是什么问题?
第一个 URL 是达世币,但第二个不是,但不幸的是我将其标记为:just_audio 在两个流中都可以正常工作!
我一直在尝试 just_audio 播放互联网音频流。我可以使用此地址播放 BBC World 服务:https://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/dash/nonuk/ dash_low/aks/bbc_world_service.mpd 但使用不同的地址:https://stream.live.vc.bbcmedia.co.uk/bbc_world_service 我收到以下错误:
ExoPlayerImpl( 4556): Init d22c684 [ExoPlayerLib/2.13.1] [generic_x86_arm, sdk_gphone_x86_arm, Google, 30]
E/ExoPlayerImplInternal( 4556): Playback error
E/ExoPlayerImplInternal( 4556): com.google.android.exoplayer2.ExoPlaybackException: Source error
E/ExoPlayerImplInternal( 4556): at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:579)
E/ExoPlayerImplInternal( 4556): at android.os.Handler.dispatchMessage(Handler.java:102)
E/ExoPlayerImplInternal( 4556): at android.os.Looper.loop(Looper.java:223)
E/ExoPlayerImplInternal( 4556): at android.os.HandlerThread.run(HandlerThread.java:67)
E/ExoPlayerImplInternal( 4556): Caused by: com.google.android.exoplayer2.ParserException: org.xmlpull.v1.XmlPullParserException: Unexpected token (position:TEXT qÆTÆXq�V��ۄ�$��d...@1:111 in java.io.InputStreamReader@5a94cdd)
E/ExoPlayerImplInternal( 4556): at com.google.android.exoplayer2.source.dash.manifest.DashManifestParser.parse(DashManifestParser.java:107)
E/ExoPlayerImplInternal( 4556): at com.google.android.exoplayer2.source.dash.manifest.DashManifestParser.parse(DashManifestParser.java:62)
E/ExoPlayerImplInternal( 4556): at com.google.android.exoplayer2.upstream.ParsingLoadable.load(ParsingLoadable.java:179)
E/ExoPlayerImplInternal( 4556): at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:415)
E/ExoPlayerImplInternal( 4556): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
两个地址都在 VLC 上播放。 谁能给我解释一下这是什么问题?
第一个 URL 是达世币,但第二个不是,但不幸的是我将其标记为:just_audio 在两个流中都可以正常工作!