send keepalives on live.m4s

Chrome appears to time out at 60 seconds of inactivity otherwise.
I think it's better to keep the stream open, even if the camera is
broken.

The implementation looks awkward, but that might be the state of Rust
async right now.
This commit is contained in:
Scott Lamb
2021-03-25 23:01:38 -07:00
parent f9c46dca89
commit 2954a56fce
4 changed files with 58 additions and 27 deletions

View File

@@ -490,6 +490,8 @@ followed by by a `.mp4` media segment. The following headers will be included:
* `X-Media-Time-Range`: the relative media start and end times of these
frames within the recording, as a half-open interval.
The server will also send pings, currently at 30-second intervals.
The WebSocket will always open immediately but will receive messages only while the
backing RTSP stream is connected.