Ocultar reproductor hasta tener sesion y refrescar al conectar
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m1s
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m1s
- El reproductor solo se muestra si hay sesion activa - Al conectarse exitosamente, el player se refresca automaticamente - Evita mostrar iframe roto mientras no hay autorizacion
This commit is contained in:
@@ -94,8 +94,10 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Reproductor -->
|
||||
<!-- Reproductor (solo si hay sesión activa) -->
|
||||
<StreamsStreamPlayer
|
||||
v-if="isStreamSessionActive"
|
||||
:key="streamPlayerKey"
|
||||
:stream-url="getStreamUrl"
|
||||
:use-iframe="useIframe"
|
||||
:stream-type="selectedType"
|
||||
@@ -257,6 +259,7 @@ const showEventModal = ref(false)
|
||||
// Estado de conexión a streams
|
||||
const isConnecting = ref(false)
|
||||
const isStreamSessionActive = ref(false)
|
||||
const streamPlayerKey = ref(0) // Para forzar refresh del player
|
||||
|
||||
/**
|
||||
* Abre popup para autenticarse en streams.nucleoriofrio.com
|
||||
@@ -279,6 +282,7 @@ const connectToStreams = () => {
|
||||
clearInterval(checkPopup)
|
||||
isConnecting.value = false
|
||||
isStreamSessionActive.value = true
|
||||
streamPlayerKey.value++ // Forzar refresh del player
|
||||
toast.add({
|
||||
title: 'Conectado',
|
||||
description: 'Sesion de streams establecida',
|
||||
@@ -296,6 +300,7 @@ const connectToStreams = () => {
|
||||
clearInterval(checkPopup)
|
||||
isConnecting.value = false
|
||||
isStreamSessionActive.value = true
|
||||
streamPlayerKey.value++ // Forzar refresh del player
|
||||
toast.add({
|
||||
title: 'Conectado',
|
||||
description: 'Sesion de streams establecida',
|
||||
|
||||
Reference in New Issue
Block a user