安卓Exoplayer只播放流媒体的前几秒(预卷)。

问题描述 投票:0回答:0

我在加载MP3流时遇到了问题。

流是 。https:/nostalgiewaf6070.ice.infomaniak.chnostalgiewaf6070-128.mp3?aw_0_req.gdpr=true。

我使用Exoplayer加载流媒体。

new ProgressiveMediaSource.Factory(ds, new DefaultExtractorsFactory()
                    .setConstantBitrateSeekingEnabled(false))
                    .createMediaSource(uri);

一切都很好,但它只播放预卷(前4-5秒),而且在预卷结束后没有继续播放流媒体。

如何告诉Exoplayer继续获取流媒体?我也在使用react-native-track-player库。

android react-native exoplayer
© www.soinside.com 2019 - 2024. All rights reserved.