You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Room.switchActiveDevice() allows us to set the audiooutput device for all subscribed remote participants.
Retrieving the actively set device is possible for the audioinput (microphone) by calling room.localParticipant.getTrack('microphone')?.audioTrack?.getDeviceId(). The same can be done for the videoinput (camera).
However there is not method to retrieve the currently configured output device for all remote participants.
Describe the proposed solution
One possibility would be to provide the symmetric equivalent to switchActiveDevice():
/** * Returns the currently active device used in this room. * * Note: setting and reading AudioOutput is not supported on some browsers. See [setSinkId](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/setSinkId#browser_compatibility) * * @param kind use `videoinput` for camera track, * `audioinput` for microphone track, * `audiooutput` to set speaker for all incoming audio tracks * @returns promise that resolves to the active deviceId */asyncgetActiveDevice(deviceId : Kind) : Promise<string>;
Alternatives considered
As there already are valid methods to retrieve the active microphone and camera one could also provide an explicit method for the audiooutput as an alternative
/** * Returns the currently active audio output used for all attached remote participants in this room. * * Note: setting and reading AudioOutput is not supported on some browsers. See [setSinkId](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/setSinkId#browser_compatibility) * Note: Use [[LocalTrack.getDeviceId()]] to get the active audioinput and videoinput. * @returns promise that resolves to the active audio output deviceId */asyncgetActiveAudioOutputDevice() : Promise<string>
Describe the problem
Room.switchActiveDevice()
allows us to set theaudiooutput
device for all subscribed remote participants.Retrieving the actively set device is possible for the
audioinput
(microphone) by callingroom.localParticipant.getTrack('microphone')?.audioTrack?.getDeviceId()
. The same can be done for thevideoinput
(camera).However there is not method to retrieve the currently configured output device for all remote participants.
Describe the proposed solution
One possibility would be to provide the symmetric equivalent to
switchActiveDevice()
:Alternatives considered
As there already are valid methods to retrieve the active microphone and camera one could also provide an explicit method for the
audiooutput
as an alternativeImportance
would make my life easier
Additional Information
Discussed with @lukasIO on slack
The text was updated successfully, but these errors were encountered: