meigo / svelte-video-player

Basic video player component for svelte
MIT License
133 stars 21 forks source link

Added simple function prop to obtain formatted time #11

Open brunogrcsada opened 3 years ago

brunogrcsada commented 3 years ago

Allows formatted time from the video player to be returned when setTime is executed; useful for displaying messages or changing content on a page depending on the video's current timestamp.

Example usage

let getTime = (time) => console.log(time);

Example result

image