-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core: use getTrack().some() to tell if screenshare has audio and use fallback id #186
Conversation
Replace the `MediaStream.getAudioTracks().length > 0` with a `MediaStream.getTrack().some()` function, as some WebRTC implementation does not have `.getAudioTracks()` implemented.
🦋 Changeset detectedLatest commit: 8f6987d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
/canary |
🚀 The canary release has been published to npm. You can test the release by installing the newly published version: yarn add @whereby.com/core@0.0.0-canary-20240411085142 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
/canary |
🚀 The canary release has been published to npm. You can test the release by installing the newly published version: yarn add @whereby.com/core@0.0.0-canary-20240411113310 |
We don't really use the `id` field on the screenshare MediaStream, therefore it's `undefined`. Let's use the `pres-` prefixed clientId for remote participants' screenshares and `local-screenshares` for local participant's screenshare in this case, like we do in PWA.
d5b72c1
to
8f6987d
Compare
/canary |
🚀 The canary release has been published to npm. You can test the release by installing the newly published version: yarn add @whereby.com/core@0.0.0-canary-20240411122200 |
Description
Summary:
MediaStream.getAudioTracks().length > 0
with aMediaStream.getTrack().some()
function, as some WebRTC implementation does not have.getAudioTracks()
implemented.id
for screenshares:pres-<clientId>
for remote participants andlocal-screenshare
for local participant.Related Issue:
Testing
Screenshots/GIFs (if applicable)
Checklist
under the terms of the MIT license.
Additional Information