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() { diff --git a/frontend/src/plugins/MusicPlugin.ts b/frontend/src/plugins/MusicPlugin.ts index df55eaa6..f14d111e 100644 --- a/frontend/src/plugins/MusicPlugin.ts +++ b/frontend/src/plugins/MusicPlugin.ts @@ -55,7 +55,7 @@ export default class MusicPlugin extends JimmiPlugin { }, }; private chooseRandomBaseUrl(): string { - const instances = ["https://vid.puffyan.us", "https://invidious.tiekoetter.com", "https://invidious.flokinet.to", "https://inv.bp.projectsegfau.lt", "https://yt.artemislena.eu", "https://invidious.projectsegfau.lt", "https://invidious.lunar.icu"]; + const instances = ["https://vid.puffyan.us", "https://invidious.flokinet.to", "https://inv.bp.projectsegfau.lt", "https://yt.artemislena.eu", "https://invidious.projectsegfau.lt", "https://invidious.lunar.icu"]; return instances[Math.floor(instances.length * Math.random())]; }