implement video seek feature (#593)
* implement video seek feature * rm attribute from MediaInteractions * resolve ts warning * use getEventTarget
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user