Skip to content

Commit

Permalink
Merge pull request #156 from Music-Bot-for-Jitsi/dev
Browse files Browse the repository at this point in the history
Fix audio playback issues
  • Loading branch information
p-fruck authored Feb 1, 2024
2 parents aa7825d + 630bbd0 commit b4b098b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/models/JimmiApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export class JimmiApi {
}

mute() {
// ToDo: implement
this.conference.muteAudio(true);
}

unmute() {
// ToDo: implement
this.conference.muteAudio(false);
}

get queue(): Track[] {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/models/Track.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/plugins/MusicPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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())];
}

Expand Down

0 comments on commit b4b098b

Please sign in to comment.