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

Add support for frameTimeout option #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cybrox
Copy link
Contributor

@cybrox cybrox commented Apr 23, 2024

Implements the request from #36.

This adds a frameTimeout option that can be passed a Duration. The option is expected to be used with streams where isLive=true, so that there is a timeout between receiving frames. If no new frame is received for the given timeout duration, the stream is automatically reloaded.

We have been using this in our desktop app to get streams to reload after the machine entered sleep mode and it has worked very well for the past (almost) two months.

This adds a frameTimeout option that can be passed a Duration.
The option is expected to be used with streams where isLive=true,
so that there is a timeout between receiving frames.
If no new frame is received for the given timeout duration,
the stream is automatically reloaded.
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.

1 participant