mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-03 04:26:36 +08:00
添加115云端解码功能
This commit is contained in:
@@ -7,4 +7,5 @@ export * from './history'
|
||||
export * from './library'
|
||||
export * from './media'
|
||||
export * from './notifications'
|
||||
export * from './playback'
|
||||
export * from './playProfiles'
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user