fix(dash): [PKG-DASH-05] align nullable SDK metadata and validate real types

This commit is contained in:
Harvey Zhao committed 2026-09-12 06:07:03 +08:00
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