try and do the news noises

This commit is contained in:
Marks Polakovs 2020-04-13 13:56:17 +02:00
parent 5f6a7fec15
commit bebdd0186b

View file

@ -99,6 +99,7 @@ export class WebRTCStreamer extends Streamer {
minutes: 59, minutes: 59,
seconds: 45 seconds: 45
}); });
console.log("news time", newsTime);
const delta = newsTime.valueOf() - now.valueOf(); const delta = newsTime.valueOf() - now.valueOf();
this.newsInTimeout = window.setTimeout(async () => { this.newsInTimeout = window.setTimeout(async () => {
await MixerState.playNewsIntro(); await MixerState.playNewsIntro();
@ -113,6 +114,7 @@ export class WebRTCStreamer extends Streamer {
minutes: 0, minutes: 0,
seconds: 55 seconds: 55
}); });
console.log("end time", newsEndTime);
const delta = newsEndTime.valueOf() - now.valueOf(); const delta = newsEndTime.valueOf() - now.valueOf();
this.newsOutTimeout = window.setTimeout(async () => { this.newsOutTimeout = window.setTimeout(async () => {
await MixerState.playNewsEnd(); await MixerState.playNewsEnd();