From 0e1ec6a9964c017b79205532ef53a8dbf0b80076 Mon Sep 17 00:00:00 2001 From: Santiago Souto Date: Thu, 24 Oct 2024 11:24:19 -0300 Subject: [PATCH] fix (millicast-viewer-demo): Remove autoReconnect null set in instance creation (#464) --- packages/millicast-viewer-demo/src/viewer.ts | 2 +- packages/millicast-webaudio-delay-demo/src/viewer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/millicast-viewer-demo/src/viewer.ts b/packages/millicast-viewer-demo/src/viewer.ts index bc9e8f7b..c6f28216 100644 --- a/packages/millicast-viewer-demo/src/viewer.ts +++ b/packages/millicast-viewer-demo/src/viewer.ts @@ -55,7 +55,7 @@ let millicastView = null const newViewer = () => { const options: DirectorSubscriberOptions = { streamName, streamAccountId: accountId, subscriberToken } const tokenGenerator = () => Director.getSubscriber(options, enableDRM) - const millicastView = new View(tokenGenerator, null, autoReconnect) + const millicastView = new View(tokenGenerator, autoReconnect) millicastView.on('broadcastEvent', (event) => { if (!autoReconnect) return if (event.name === 'active') { diff --git a/packages/millicast-webaudio-delay-demo/src/viewer.ts b/packages/millicast-webaudio-delay-demo/src/viewer.ts index 1cbbdcd9..bfe709f3 100644 --- a/packages/millicast-webaudio-delay-demo/src/viewer.ts +++ b/packages/millicast-webaudio-delay-demo/src/viewer.ts @@ -61,7 +61,7 @@ document.body.onclick = async () => { const audioContext = new window.AudioContext({ sampleRate: 48000 }) const options: DirectorSubscriberOptions = { streamName, streamAccountId } const tokenGenerator = () => Director.getSubscriber(options) - window.millicastView = millicastView = new View(tokenGenerator, null, true) + window.millicastView = millicastView = new View(tokenGenerator, true) millicastView.on('track', ({ track }) => { // Ignore non audio tracks if (track.kind !== 'audio') {