refactor(core): CORE-10 type playback properties and add compatible controls view

This commit is contained in:
Harvey Zhao committed 2026-09-11 02:51:55 +08:00
1 parent 44f4e083a9
commit 5e31274f1d
48 files changed
+3846 -248

No files matched your search

+8
View File
@@ -367,6 +367,13 @@ export declare class Player {
reset(): void
}
/** Accurate playback method view; assign an existing player without a runtime wrapper. */
export interface PlaybackControls {
play: () => Promise<void>
pause: () => void
toggle: () => Promise<void> | void
}
export type CustomType
= | 'flv'
| 'm3u8'
@@ -1167,6 +1174,7 @@ export type {
Icons,
Option,
OptionInput,
PlaybackControls,
Player,
PluginFactory,
Plugins,