1
0
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:
zafer 2024-09-03 18:59:32 +03:00
parent 52aad5a5c7
commit e76d9e6537

View File

@ -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