|
@@ -764,9 +764,18 @@ class RTCUtils extends Listenable {
|
764
|
764
|
* @returns {boolean} true if available, false otherwise.
|
765
|
765
|
*/
|
766
|
766
|
isDeviceChangeAvailable(deviceType) {
|
767
|
|
- return deviceType === 'output' || deviceType === 'audiooutput'
|
768
|
|
- ? isAudioOutputDeviceChangeAvailable
|
769
|
|
- : true;
|
|
767
|
+ if (deviceType === 'output' || deviceType === 'audiooutput') {
|
|
768
|
+ return isAudioOutputDeviceChangeAvailable;
|
|
769
|
+ }
|
|
770
|
+
|
|
771
|
+ // Calling getUserMedia again (for preview) kills the track returned by the first getUserMedia call because of
|
|
772
|
+ // https://bugs.webkit.org/show_bug.cgi?id=179363. Therefore, do not show microphone/camera options on mobile
|
|
773
|
+ // Safari.
|
|
774
|
+ if ((deviceType === 'audioinput' || deviceType === 'input') && browser.isIosBrowser()) {
|
|
775
|
+ return false;
|
|
776
|
+ }
|
|
777
|
+
|
|
778
|
+ return true;
|
770
|
779
|
}
|
771
|
780
|
|
772
|
781
|
/**
|