add notification sound of speaker request

peertube v0.1.0-alpha3
Namekuji 2023-01-13 20:30:37 -05:00
rodzic 11c24d095c
commit ee9c1eda41
2 zmienionych plików z 6 dodań i 0 usunięć

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -35,6 +35,7 @@ import NoSleep from "@uriopass/nosleep.js";
import { DateTime } from "luxon";
import boopSound from "../assets/boop.oga";
import messageSound from "../assets/message.oga";
import requestSound from "../assets/request.oga";
const publishOpts = {
audioBitrate: AudioPresets.music,
@ -89,6 +90,10 @@ export default {
src: [messageSound],
volume: 0.15,
}),
request: new Howl({
src: [requestSound],
volume: 0.4,
})
},
};
},
@ -495,6 +500,7 @@ export default {
if (this.speakRequests.has(participant.identity)) return;
this.speakRequests.add(participant.identity);
this.showRequestNotification = true;
this.sounds.request.play();
}
},
async onAcceptRequest(identity) {