0

我一直在尝试使用 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 上播放。谁能向我解释问题是什么?

4

1 回答 1

0

第一个 URL 是 Dash,但第二个不是,但不幸的是我已将其标记为:just_audio 与两个流都可以正常工作!

于 2021-07-23T08:28:34.420 回答