Skip to content

How can I reset the video? #28

@ricardopolo

Description

@ricardopolo

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions