Remove audioPlayer maxMissedFrames in Streamer class

This commit is contained in:
Christer Warén 2023-12-04 22:20:52 +02:00
parent fe62792949
commit c899266975

View File

@ -51,15 +51,13 @@ export default class Streamer {
if(this.mode == "auto"){ if(this.mode == "auto"){
audioPlayer = createAudioPlayer({ audioPlayer = createAudioPlayer({
behaviors: { behaviors: {
noSubscriber: NoSubscriberBehavior.Play, noSubscriber: NoSubscriberBehavior.Play
maxMissedFrames: Math.round(5000 / 20),
} }
}); });
} else { } else {
audioPlayer = createAudioPlayer({ audioPlayer = createAudioPlayer({
behaviors: { behaviors: {
noSubscriber: NoSubscriberBehavior.Stop, noSubscriber: NoSubscriberBehavior.Stop
maxMissedFrames: Math.round(5000 / 20),
} }
}); });
} }