fixed bugs

This commit is contained in:
2026-09-13 12:58:45 +08:00
parent f810cfedd4
commit 5328898971
7 changed files with 233 additions and 61 deletions

View File

@@ -64,7 +64,7 @@ enum BoundaryState: Equatable {
case failed(message: String)
}
/// 云端视频必须先完成整文件下载;下载未完成前不允许创建可播放的 AVPlayerItem。
/// 云端视频按需流式播放;若本地已有完整缓存文件则优先使用。
enum VideoCacheState: Equatable {
case notRequired
case downloading
@@ -76,9 +76,9 @@ enum VideoCacheState: Equatable {
case .notRequired, .ready:
return nil
case .downloading:
return "正在下载完整视频,下载完成后才能播放"
return "正在缓冲视频…"
case .failed(let message):
return "视频缓存失败:\(message)"
return "视频加载失败:\(message)"
}
}
}