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 can I reset the video? #28

Open
ricardopolo opened this issue Dec 7, 2020 · 0 comments
Open

How can I reset the video? #28

ricardopolo opened this issue Dec 7, 2020 · 0 comments

Comments

@ricardopolo
Copy link

ricardopolo commented Dec 7, 2020

Hi!!

Thanks for the library! Looks awesome to me.

I'm using it to transfer realtime MP4 over the webrtc datachannel and render it in the browser. However when the user goes to another tab, Chrome throttle it and when the user goes back to the tab it starts to play the video of several seconds ago.

How should I fix this?

Some ideas:

  1. Any way to restart the stream and tell the library: forget all old frames and render just from here?
  2. I had the idea of don't write frames that came over my channel, while the document is not focused. However missing frames makes the video freeze for about 2 minutes. After that it start working again.

Thanks in advance!

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

1 participant