mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 21:31:20 -08:00
fix(dash): [PKG-DASH-05] align nullable SDK metadata and validate real types
This commit is contained in:
1 parent
c4b5f5f454
commit
2ad00730ee
25 files changed
+1255
-25
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import type { Config } from '../types/artplayer-plugin-dash-control'
|
||||
import type { AudioTrack, Config } from '../types/artplayer-plugin-dash-control'
|
||||
|
||||
export type Label = string | number | undefined
|
||||
export type Label = string | number | null | undefined
|
||||
export type Identifier = string | number
|
||||
export type Valid = () => boolean
|
||||
export type Cleanup = () => void
|
||||
@@ -12,11 +12,7 @@ export interface QualityFields {
|
||||
qualityIndex?: number
|
||||
}
|
||||
|
||||
export interface AudioFields {
|
||||
id?: Identifier
|
||||
index?: number
|
||||
lang?: string
|
||||
}
|
||||
export type AudioFields = AudioTrack
|
||||
|
||||
export interface Dash<Level extends object = object, Track extends object = object> {
|
||||
getVideoElement: () => object | null
|
||||
|
||||
Reference in new issue
Block a user