aullman / OpenTok-Angular

Angular directives and helper code to make working with OpenTok more Angularish
MIT License
47 stars 42 forks source link

Safari iOS hardware issue while switching camera. #44

Open sbuxar opened 6 years ago

sbuxar commented 6 years ago

safari on iOS will revert to not allowing the camera and mic after it's already been "Allowed". For example, when switching from the back camera to the front. Here is the source: https://github.com/doxyme/angular-tokbox/blob/master/opentok-angular.js But our Safari demo and a sample (https://jsfiddle.net/xajprcyn/16/) created by me is working fine. It might be Angular specific or something else.

aullman commented 6 years ago

Can you provide steps to reproduce the issue?

sbuxar commented 6 years ago

Here is the steps: You could log into user staging server and try:

iOS 11.2 , Safari browser (I'm on a iPhone 7)

https://doxi.me/sign-in

Nginx username: doxyme2017 nginx password: woodenspoon

doxi.me email to sign in: test@example.com doxi.me password: test

Then from a different browser, say Chrome on your desktop go to: https://doxi.me/testroom (have to sign in to nginx again). "Check in" as anything.

Then on safari side, open the sidebar (top right hamburger icon), and click the picture/name of the person you checked in as. The call might fail the first time, second time it might work.

In the publisher on iOS Safari you can switch to back camera by pressing the icon to rotate camera to back. It will fail on first attempt. Then restart the session and it will work.

You'll noticed the camera icon in Safari goes to having a slash on it.