Skip to content

Commit

Permalink
fix (millicast-viewer-demo): Remove autoReconnect null set in instanc…
Browse files Browse the repository at this point in the history
…e creation (#464)
  • Loading branch information
Santiago-Souto authored Oct 24, 2024
1 parent c9c4a81 commit 0e1ec6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/millicast-viewer-demo/src/viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
2 changes: 1 addition & 1 deletion packages/millicast-webaudio-delay-demo/src/viewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 0e1ec6a

Please sign in to comment.