Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How get the progress time #157

Open
EABangalore opened this issue Jun 15, 2024 · 2 comments
Open

How get the progress time #157

EABangalore opened this issue Jun 15, 2024 · 2 comments

Comments

@EABangalore
Copy link

i was looking something like this

const video = document.querySelector("video");

video.ontimeupdate = (event) => {
  console.log("The currentTime attribute has been updated. Again.");
};

but did not find any here in this Event listeners examples

Even i have posted the code on stackoverflow

Please help me!

@eduardoRoth
Copy link
Contributor

@EABangalore I built a new plugin Media Player which improves and extends functionality of this one.

It includes a new event that you can listen for progress updates:

MediaPlayer.addListener("MediaPlayer:TimeUpdate", (event: { playerId: string; currentTime: number; }) => console.log(event.currentTime));

@EABangalore
Copy link
Author

@EABangalore I built a new plugin Media Player which improves and extends functionality of this one.

It includes a new event that you can listen for progress updates:

MediaPlayer.addListener("MediaPlayer:TimeUpdate", (event: { playerId: string; currentTime: number; }) => console.log(event.currentTime));

@eduardoRoth Thank you for solving my problem. surely i will try them!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants