Skip to content

Commit

Permalink
Merge branch 'v1-migration' into nx/release
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiago-Souto authored Oct 24, 2024
2 parents 9fc8f24 + 0e1ec6a commit 9ad9e2f
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 9ad9e2f

Please sign in to comment.