millicast / millicast-sdk

SDK for building a realtime broadcaster using the Millicast platform.
Other
39 stars 30 forks source link

Initialize worker on drm track to avoid error thrown #436

Closed Santiago-Souto closed 2 months ago

Santiago-Souto commented 2 months ago

~On the viewer side, using the SDK, sometimes the addEventListener of the worker throws an error because the worker was not initialized before. Added a guard to avoid this error~

Edit: The worker was not being initialized if metadata option was not passed. Added an initialization of the worker if it does not exist before the event listener failing.

changeset-bot[bot] commented 2 months ago

⚠️ No Changeset found

Latest commit: 1c5bea94c8f0f63cf2679c5bb44f2586e77d89e2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR