添加115云端解码功能

This commit is contained in:
truewhile
2026-09-14 17:57:51 +08:00
parent 91c6d9dfd9
commit b28c0d9247
22 changed files with 2436 additions and 50 deletions
+1
View File
@@ -7,4 +7,5 @@ export * from './history'
export * from './library'
export * from './media'
export * from './notifications'
export * from './playback'
export * from './playProfiles'
+31
View File
@@ -0,0 +1,31 @@
export type PlaybackQualitySource = 'cloud' | 'original' | 'local'
export interface PlaybackQuality {
id: string
label: string
height?: number
source: PlaybackQualitySource
available: boolean
requires_transcode?: boolean
requires_vip?: boolean
note?: string
}
export interface PlaybackTranscodeState {
state: 'idle' | 'ready' | 'transcoding' | 'unavailable'
definition?: string
message?: string
retry_after_sec?: number
started_at?: number
}
export interface PlaybackInfo {
media_id: string
provider: string
fallback: string[]
default_quality: string
cloud_qualities?: PlaybackQuality[]
local_qualities: PlaybackQuality[]
transcode: PlaybackTranscodeState
}