How can I reset the video?
- Dominant language
- JavaScript
- Stars
- 138
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
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!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.