millicast / millicast-sdk

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

Throw error with wrong codec for metadata #342

Closed Santiago-Souto closed 2 months ago

Santiago-Souto commented 2 months ago

The RTCEncodedVideoFrame captured in the worker for inserting metadata has a getMetadata() method that return an object with the mimeType as one of their attributes. This shows what codec is publishing, with what we can check before inserting and throwing corresponding error if necessary.

changeset-bot[bot] commented 2 months ago

⚠️ No Changeset found

Latest commit: ebf110af98a950c155785bad141d3870e3c934a6

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