impl apis: play, pause, goto

This commit is contained in:
Yanzhen Yu
2020-09-08 15:09:06 +08:00
parent 4c0cbfaf6a
commit 5a1d8b30b0
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