如何在android中连续播放多个URL?我有一个小的流媒体网址10s/每一首完整的歌曲。我需要一个接一个地玩。有没有办法这样做,这样音乐就不会变慢?
发布于 2019-11-28 12:17:57
看起来您正在使用m3u8播放列表播放MediaPlayer。然而,你无法做到这一点。您可以使用ExoPlayer播放m3u8列表。检查此链接https://github.com/google/ExoPlayer
发布于 2019-12-01 14:33:19
https://exoplayer.dev/media-sources.html read高级合成
MediaSource firstSource =
new ProgressiveMediaSource.Factory(...).createMediaSource(firstVideoUri);
MediaSource secondSource =
new ProgressiveMediaSource.Factory(...).createMediaSource(secondVideoUri);
// Plays the first video twice, then the second video.
ConcatenatingMediaSource concatenatedSource =
new ConcatenatingMediaSource(firstSource, firstSource, secondSource);
发布于 2021-03-23 12:14:01
simpleExoPlayerView.setShowMultiWindowTimeBar(true);
https://stackoverflow.com/questions/59078464
复制