openvidu icon indicating copy to clipboard operation
openvidu copied to clipboard

Video input device doesn't support the value passed for constraint '' in iOS 14.3

Open jay-supakorn opened this issue 4 years ago • 4 comments

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 ''

jay-supakorn avatar Jan 15 '21 14:01 jay-supakorn

Hi @moqshosting ,

This could be related with this iosrtc issue https://github.com/cordova-rtc/cordova-plugin-iosrtc/issues/618#issuecomment-748620749

CSantosM avatar Jan 15 '21 14:01 CSantosM

@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

AustinRSellers avatar Jan 30 '21 00:01 AustinRSellers

It ended up being iosrtc 6.0.16. Just upgrade to 6.0.17 and everything should work.

AustinRSellers avatar Jan 30 '21 21:01 AustinRSellers

For newer ios versions (>14) you need this cordova iosrtc no longer. It works out of the box with ionic

Siedlerchr avatar Nov 12 '21 17:11 Siedlerchr