mirror of
https://github.com/algora-io/tv.git
synced 2025-03-27 20:20:18 +02:00
terminate pipeline on end_of_stream notification
This commit is contained in:
parent
52aad5a5c7
commit
e76d9e6537
@ -68,8 +68,9 @@ defmodule Algora.Pipeline do
|
||||
def handle_child_notification(:end_of_stream, _element, _ctx, state) do
|
||||
Algora.Library.toggle_streamer_live(state.video, false)
|
||||
|
||||
# TODO: gracefully terminate open connections (e.g. RTMP, WS)
|
||||
{[], state}
|
||||
# TODO: close any open connections (e.g. Algora.Restream.WebSocket)
|
||||
|
||||
{[terminate: :normal], state}
|
||||
end
|
||||
|
||||
def handle_child_notification({:track_playable, :video}, _element, _ctx, state) do
|
||||
|
Loading…
x
Reference in New Issue
Block a user