From 958aea89ea0208f2c6f4b2fe6e1dfca4c352d5fe Mon Sep 17 00:00:00 2001 From: dragongoose Date: Mon, 3 Jul 2023 16:01:10 -0400 Subject: [PATCH] Add banners and always show chat --- src/types/Streamer.ts | 1 + src/views/UserView.vue | 13 ++++--------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/types/Streamer.ts b/src/types/Streamer.ts index d3569fa..e5a0f9f 100644 --- a/src/types/Streamer.ts +++ b/src/types/Streamer.ts @@ -22,6 +22,7 @@ export interface StreamerData { about: string socials?: Social[] pfp: string + banner: string stream?: StreamData | null isPartner: boolean | null colorHex: string diff --git a/src/views/UserView.vue b/src/views/UserView.vue index 1fd483f..b1860fc 100644 --- a/src/views/UserView.vue +++ b/src/views/UserView.vue @@ -15,19 +15,11 @@ export default { inject: ["rootBackendUrl"], async setup() { const route = useRoute() - const username = route.params.username const data = ref() const status = ref<"ok" | "error">() - const rootBackendUrl = inject('rootBackendUrl') const videoOptions = { autoplay: true, controls: true, - sources: [ - { - src: `${rootBackendUrl}/proxy/stream/${username}/hls.m3u8`, - type: 'application/vnd.apple.mpegurl' - } - ], fluid: true } @@ -71,11 +63,14 @@ export default { >
+ Streamer banner +
@@ -151,6 +146,6 @@ export default {
- +