pull/1295/head
gedoor 3 years ago
parent 9a1d61ca23
commit 69a22a0324
  1. 7
      app/src/main/java/io/legado/app/service/AudioPlayService.kt

@ -124,7 +124,12 @@ class AudioPlayService : BaseService(),
upPlayProgressJob?.cancel()
exoPlayer.clearMediaItems()
val analyzeUrl =
AnalyzeUrl(url, headerMapF = AudioPlay.headers(), useWebView = true)
AnalyzeUrl(
url,
headerMapF = AudioPlay.headers(),
source = AudioPlay.bookSource,
useWebView = true
)
val uri = Uri.parse(analyzeUrl.url)
val mediaSource = ExoPlayerHelper.createMediaSource(uri)
exoPlayer.setMediaSource(mediaSource)

Loading…
Cancel
Save