pull/1298/head
gedoor 3 years ago
parent 07a56372e8
commit 53e9c499a4
  1. 2
      app/src/main/java/io/legado/app/service/AudioPlayService.kt

@ -131,7 +131,7 @@ class AudioPlayService : BaseService(),
headerMapF = AudioPlay.headers(), headerMapF = AudioPlay.headers(),
source = AudioPlay.bookSource source = AudioPlay.bookSource
) )
val uri = Uri.parse(analyzeUrl.url) val uri = Uri.parse(analyzeUrl.getDirectUrl())
val mediaSource = ExoPlayerHelper val mediaSource = ExoPlayerHelper
.createMediaSource(uri, analyzeUrl.headerMap) .createMediaSource(uri, analyzeUrl.headerMap)
exoPlayer.setMediaSource(mediaSource) exoPlayer.setMediaSource(mediaSource)

Loading…
Cancel
Save