From 6d356e0cd72c1cfffba9ef0b7ae976ee8df7ea21 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Thu, 13 Jul 2023 07:36:27 +0200 Subject: [PATCH] fix http-flv player, ffplayout#349 --- components/Control.vue | 37 +++++++++++++++---------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/components/Control.vue b/components/Control.vue index 54a24d68..2a0496b0 100644 --- a/components/Control.vue +++ b/components/Control.vue @@ -2,14 +2,9 @@
-
-
-
-
+
Live Ingest
@@ -170,11 +163,11 @@ const httpStreamFlv = ref(null) const httpFlvSource = ref({ type: 'flv', isLive: true, - url: configStore.configGui[configStore.configID].preview_url + url: configStore.configGui[configStore.configID].preview_url, }) const mpegtsOptions = ref({ lazyLoadMaxDuration: 3 * 60, - liveBufferLatencyChasing: true + liveBufferLatencyChasing: true, }) onMounted(() => { @@ -248,7 +241,7 @@ async function playoutStatus() { await $fetch(`/api/control/${channel}/process/`, { method: 'POST', headers: { ...contentType, ...authStore.authHeader }, - body: JSON.stringify({ command: 'status' }) + body: JSON.stringify({ command: 'status' }), }) .then((response: any) => { if (response === 'active') { @@ -272,7 +265,7 @@ async function controlProcess(state: string) { await $fetch(`/api/control/${channel}/process/`, { method: 'POST', headers: { ...contentType, ...authStore.authHeader }, - body: JSON.stringify({ command: state }) + body: JSON.stringify({ command: state }), }) setTimeout(() => { @@ -293,7 +286,7 @@ async function controlPlayout(state: string) { await $fetch(`/api/control/${channel}/playout/`, { method: 'POST', headers: { ...contentType, ...authStore.authHeader }, - body: JSON.stringify({ control: state }) + body: JSON.stringify({ control: state }), }) setTimeout(() => {