From 5319105e836f2c006f2f074895457bbfefb93a8d Mon Sep 17 00:00:00 2001 From: Philipp Fruck Date: Thu, 1 Feb 2024 13:38:00 +0100 Subject: [PATCH] fix audio playback --- frontend/src/models/JimmiApi.ts | 4 ++-- frontend/src/models/Track.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/models/JimmiApi.ts b/frontend/src/models/JimmiApi.ts index 4c9f94cf..70f591a0 100644 --- a/frontend/src/models/JimmiApi.ts +++ b/frontend/src/models/JimmiApi.ts @@ -15,11 +15,11 @@ export class JimmiApi { } mute() { - // ToDo: implement + this.conference.muteAudio(true); } unmute() { - // ToDo: implement + this.conference.muteAudio(false); } get queue(): Track[] { diff --git a/frontend/src/models/Track.ts b/frontend/src/models/Track.ts index 08b89045..4157c75c 100644 --- a/frontend/src/models/Track.ts +++ b/frontend/src/models/Track.ts @@ -8,7 +8,7 @@ export class Track { constructor(res: VideoResponse) { this.#thumbnailUrl = res.videoThumbnails[0].url; this.#title = res.title; - this.#source = res.adaptiveFormats.filter((format) => format.encoding === "opus")[0].url; + this.#source = res.adaptiveFormats[0].url; } get thumbnailUrl() {