Skip to content

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