mirror of
https://github.com/algora-io/tv.git
synced 2025-02-14 01:59:50 +02:00
ignore livestream started events if one already playing
This commit is contained in:
parent
2ac3b7b011
commit
2b46096254
@ -218,7 +218,7 @@ defmodule AlgoraWeb.HomeLive do
|
||||
@impl true
|
||||
def handle_info(
|
||||
{Library, %Library.Events.LivestreamStarted{video: video}},
|
||||
socket
|
||||
%{assigns: %{livestream: nil}} = socket
|
||||
) do
|
||||
send_update(PlayerComponent, %{
|
||||
id: "home-player",
|
||||
|
Loading…
x
Reference in New Issue
Block a user