impl apis: play, pause, goto

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent f3e96622de
commit fa185e9a87
3 changed files with 44 additions and 14 deletions

View File

@@ -99,6 +99,15 @@
export const toggleSkipInactive = () => {
controller.toggleSkipInactive();
};
export const play = () => {
controller.play();
};
export const pause = () => {
controller.pause();
};
export const goto = (timeOffset: number) => {
controller.goto(timeOffset);
};
onMount(() => {
// runtime type check