Conversation
…ort for the Speaker Selection API on iOS and iPadOS.
|
lukasIO
left a comment
There was a problem hiding this comment.
Thanks for the PR!
I believe the speaker selection API comes with some more caveats (explicit user permission must be granted for output selection if no microphone is acquired yet).
I haven't tested this, but probably needs its own selection path via MediaDevices.selectAudioOutput ?
| return ( | ||
| (browser?.name === 'Safari' && compareVersions(browser.version, '26') >= 0) || | ||
| (browser?.os === 'iOS' && !!browser?.osVersion && compareVersions(browser.osVersion, '26') >= 0) || | ||
| (browser?.os === 'macOS' && !!browser?.osVersion && compareVersions(browser.osVersion, '26') >= 0) |
There was a problem hiding this comment.
this check is not connected to checking against Safari, I believe?
With the next iteration of Apple OSes the Speaker Selection API is supported (https://developer.apple.com/documentation/safari-release-notes/safari-26-release-notes#WebRTC)
This PR adds support for it by:
isSafariSpeakerSelectionSupportedhelper functionsupportsSetSinkIdfixes #1568 at least for macOS.
In contrast to https://webrtc.github.io/samples/src/content/devices/input-output/ this PR does not (yet) fix the issue on iOS26