This commit is contained in:
ocean 2025-06-12 14:44:26 +08:00
parent a4427edd1b
commit f75a96f46c
2 changed files with 2 additions and 4 deletions

View File

@ -216,7 +216,7 @@ class PlaybackService : MediaSessionService(), Player.Listener {
// }
}
// 进入协程安全调用你提供的获取方法
//新的获取地址的方法。上面注释的旧的获取方法
val playbackResult = runBlocking(Dispatchers.IO) {
playerResponseForPlayback(
videoId = videoId,

View File

@ -141,8 +141,7 @@ object DownloadUtil {
// )
// }
}
// 进入协程安全调用你提供的获取方法
//新的获取地址的方法。上面注释的旧的获取方法
val playbackResult = runBlocking(Dispatchers.IO) {
playerResponseForPlayback(
videoId = videoId,
@ -166,7 +165,6 @@ object DownloadUtil {
val uri = streamUrl.toUri()
// 缓存
ringBuffer.append(videoId to uri)
LogD(TAG, "Resolved URL for $videoId: $streamUrl")