implement video seek feature (#593)

* implement video seek feature

* rm attribute from MediaInteractions

* resolve ts warning

* use getEventTarget
This commit is contained in:
bachmanity1
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 2e0d981190
commit 6de0efa01f
4 changed files with 21 additions and 11 deletions

View File

@@ -474,11 +474,13 @@ export type inputCallback = (v: inputValue & { id: number }) => void;
export const enum MediaInteractions {
Play,
Pause,
Seeked,
}
export type mediaInteractionParam = {
type: MediaInteractions;
id: number;
currentTime?: number
};
export type mediaInteractionCallback = (p: mediaInteractionParam) => void;