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() upPlayProgressJob?.cancel()
exoPlayer.clearMediaItems() exoPlayer.clearMediaItems()
val analyzeUrl = 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 uri = Uri.parse(analyzeUrl.url)
val mediaSource = ExoPlayerHelper.createMediaSource(uri) val mediaSource = ExoPlayerHelper.createMediaSource(uri)
exoPlayer.setMediaSource(mediaSource) exoPlayer.setMediaSource(mediaSource)

Loading…
Cancel
Save