implement video seek feature (#593)

* implement video seek feature

* rm attribute from MediaInteractions

* resolve ts warning

* use getEventTarget
This commit is contained in:
bachmanity1
2021-06-24 19:28:14 +09:00
committed by GitHub
parent 1b62620e52
commit dbaea7a521
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;