From 9cfbfddf049cbb941481e0ee20c3018fcd10bc7f Mon Sep 17 00:00:00 2001 From: "CATERPILLAR\\Braxen" Date: Mon, 6 Nov 2023 11:05:51 +0100 Subject: [PATCH] add chapters to vod player --- client-vue/src/components/VodItem.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client-vue/src/components/VodItem.vue b/client-vue/src/components/VodItem.vue index 9e60a145..82092128 100644 --- a/client-vue/src/components/VodItem.vue +++ b/client-vue/src/components/VodItem.vue @@ -454,6 +454,8 @@ function openPlayer(): void { hash += `&chatfile=${props.vod.webpath}/${props.vod.basename}_chat.json`; } + hash += `&chapters=${props.vod.chapters?.map((c) => `${c.offset}:${c.title.replaceAll(":", "").replaceAll(";", "")}`).join(";")}`; + // url.searchParams.set("offset", this.playerSettings.offset.toString()); // window.open(url.toString(), "_blank"); router.push({ name: "VODPlayer", hash });