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

Live stream termination #262

Open
elv-serban opened this issue Feb 21, 2024 · 1 comment
Open

Live stream termination #262

elv-serban opened this issue Feb 21, 2024 · 1 comment
Assignees

Comments

@elv-serban
Copy link
Contributor

Update live stream termination logic as follows:

  • retrieve main meta
  • if status is active and we have an edge_write_token
    • attempt to retrieve edge_write_token
      • if the edge_write_token is good and we can retrieve meta
        • check if the stream is 'stopped' - fail if it is not (we don't need to stop the stream here - the user is supposed to have stopped it already)

To terminate the stream:

  • delete edge_write_token
  • open a new write token from the main version
  • set live_recording.status:
    • state: inactive
    • remove the edge_write_token (from both places)
    • stop_time: set to current time ISO format (this way we know the stream was previously active)
  • finalize
@elv-gerald
Copy link

This is good. Logic makes sense to me.

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

No branches or pull requests

3 participants