mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-18 02:21: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
@@ -34,6 +34,7 @@ const dashOption: artplayerPluginDashControl.Option = {
|
||||
const oldQuality: NonNullable<Parameters<typeof artplayerPluginDashControl>[0]['quality']> = { getName: (value: object) => String(value) }
|
||||
const typedFactory: (art: Artplayer) => artplayerPluginDashControl.Result = artplayerPluginDashControl(dashOption)
|
||||
const defaultFactory = artplayerPluginDashControl()
|
||||
const unknownTrack: artplayerPluginDashControl.AudioTrack = { id: null, index: null, lang: null }
|
||||
`, 'typescript', api.Uri.parse('file:///dash-consumer.ts'))
|
||||
const invalid = api.editor.createModel('artplayerPluginDashControl({ quality: { getName: level => level.height } })', 'typescript', api.Uri.parse('file:///dash-invalid.ts'))
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user