8000 Restart video if it reaches the end by Domratchev · Pull Request #1 · virpo/NoSleep.js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Restart video if it reaches the end #1

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Domratchev
Copy link

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

'timeupdate' event frequency varies greatly as per https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/timeupdate_event and might be too low to fire before the video completion. It does fire once upon completion of the video, at which point the video gets paused and becomes useless.
We need to restart the video in such a case.

Additional Info

Possibly resolves richtr#39 and richtr#72, as the reduced frequency of 'timeupdate' calls is likely the root cause of those two issues.

@Venryx
Copy link
Venryx commented Jul 29, 2019

Can this be merged or at least looked at? (It looks correct to me and adds helpful typings)

Repository owner deleted a comment from Domratchev Jan 26, 2020
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

Successfully merging this pull request may close these issues.

Using Chrome's speech recognition API on Android
3 participants
0