-
Notifications
You must be signed in to change notification settings - Fork 143
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
event stream #40
Labels
Milestone
Comments
Streaming type APIs work best with a web socket approach.
… On Mar 9, 2018, at 00:39, Scott Lamb ***@***.*** ***@***.***>> wrote:
I'd like to have an API endpoint which streams events as they happen, such as:
segment of recording was deleted
segment of recording was created. (with an additional flag to indicate the next segment of recording for that stream is in progress, so you can assume it has video from then to approximately now.)
a signal was changed
With this, the frontend UI could update itself without requiring the user to hit refresh.
It could be a multipart/mixed stream of JSON events that happened in the current "open", each with a sequence number. Other API calls like /api/?days=true or /api/camera/<uuid>/<stream>/recordings would have a HTTP header showing the matching sequence number. The frontend could use those together to compute the contents at any later point.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#40>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABRU1QZ4ao0Bo9CWdnEVjDXWiZ-ECiuPks5tcj-rgaJpZM4Sj7Rv>.
|
scottlamb
added a commit
that referenced
this issue
Jul 18, 2020
This is a quick fix to a problem that gives a confusing/poor initial experience, as in this thread: https://groups.google.com/g/moonfire-nvr-users/c/WB-TIW3bBZI/m/Gqh-L6I9BgAJ I don't think it's a permanent solution. In particular, when we implement an event stream (#40), I don't want to have a separate event for every frame, so having the days map change that often won't work. The client side will likely manipulate the days map then to include a special entry for a growing recording, representing "from this time to now".
scottlamb
added a commit
that referenced
this issue
Feb 16, 2023
scottlamb
added a commit
that referenced
this issue
Feb 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd like to have an API endpoint which streams events as they happen, such as:
With this, the frontend UI could update itself without requiring the user to hit refresh.
It could be a
WebSockets stream (like the live view) of JSON events that happened in the current "open", each with a sequence number.multipart/mixed
Other API calls like
/api/?days=true
or/api/camera/<uuid>/<stream>/recordings
would have a HTTP header showing the matching sequence number. The frontend could use those together to compute the contents at any later point.The text was updated successfully, but these errors were encountered: