openvidu
openvidu copied to clipboard
Video input device doesn't support the value passed for constraint '' in iOS 14.3
Describe the bug we build 1:1 video communication application base on OpenVidu example application version
- ionic version 5
- angular version 9
Occasionally, after upgrade iOS 14.1 to 14.3 we found problem on initPublisherAsync on below.
publisher = await this.OV.initPublisherAsync(undefined, {
audioSource: this.localUser.getAudioSource(),
videoSource: this.localUser.getVideoSource(),
publishAudio: this.localUser.isAudioActive(),
publishVideo: this.localUser.isVideoActive(),
mirror: this.platform.is("android")
? !this.localUser.isBackCamera()
: this.localUser.isBackCamera(),
});
Console :
2021-01-15 21:39:53.444174+0700 CoAny[5547:1800318] RealtimeMediaSource::selectSettings failed constraint 10
RealtimeMediaSource::selectSettings failed constraint 10
2021-01-15 21:39:53.445538+0700 CoAny[5547:1800318] RealtimeMediaSource::selectSettings failed constraint 10
RealtimeMediaSource::selectSettings failed constraint 10
2021-01-15 21:39:53.445932+0700 CoAny[5547:1800318] RealtimeMediaSource::selectSettings failed constraint 10
RealtimeMediaSource::selectSettings failed constraint 10
2021-01-15 21:39:53.446050+0700 CoAny[5547:1800318] Audio capture was requested but no device was found amongst 1 devices
Audio capture was requested but no device was found amongst 1 devices
2021-01-15 21:39:53.446107+0700 CoAny[5547:1800318] MediaConstraint 10 of type 4
MediaConstraint 10 of type 4
2021-01-15 21:39:53.458100+0700 CoAny[5547:1800318] RealtimeMediaSource::selectSettings failed constraint 10
RealtimeMediaSource::selectSettings failed constraint 10
2021-01-15 21:39:53.458307+0700 CoAny[5547:1800318] RealtimeMediaSource::selectSettings failed constraint 10
RealtimeMediaSource::selectSettings failed constraint 10
2021-01-15 21:39:53.458389+0700 CoAny[5547:1800318] Video capture was requested but no device was found amongst 2 devices
Video capture was requested but no device was found amongst 2 devices
2021-01-15 21:39:53.458435+0700 CoAny[5547:1800318] IntConstraint 1, min -1, max -1, exact -1, ideal 640
IntConstraint 1, min -1, max -1, exact -1, ideal 640
2021-01-15 21:39:53.458477+0700 CoAny[5547:1800318] IntConstraint 2, min -1, max -1, exact -1, ideal 480
IntConstraint 2, min -1, max -1, exact -1, ideal 480
2021-01-15 21:39:53.458512+0700 CoAny[5547:1800318] MediaConstraint 10 of type 4
MediaConstraint 10 of type 4
2021-01-15 21:39:53.460909+0700 CoAny[5547:1800318] error catch : videoSource: Video input device doesn't support the value passed for constraint ''
Expected behavior in iOS 14.1 with openvidu-browser 2.14.0 is working fine and able to detect video input device and display video result correctly.
Wrong current behavior
in iOS 14.3 with openvidu-browser 2.14, 2.16, 2.17-beta1 show occurred error on below
Video input device doesn't support the value passed for constraint ''
Hi @moqshosting ,
This could be related with this iosrtc issue https://github.com/cordova-rtc/cordova-plugin-iosrtc/issues/618#issuecomment-748620749
@moqshosting @CSantosM Im having the same issue witho openvidu-ionic-call. I updated the package to include the latest release of iosrtc in package.json and still no luck. Let me know if you all have any troubleshooting advice or if theres is anything i can do. I will also continue troubleshooting
It ended up being iosrtc 6.0.16. Just upgrade to 6.0.17 and everything should work.
For newer ios versions (>14) you need this cordova iosrtc no longer. It works out of the box with ionic