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

4
typings/types.d.ts vendored
View File

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