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') {