Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daily video on ios #26

Open
anthodb opened this issue Jan 13, 2023 · 9 comments
Open

Daily video on ios #26

anthodb opened this issue Jan 13, 2023 · 9 comments

Comments

@anthodb
Copy link

anthodb commented Jan 13, 2023

Hello Daily team, we are trying to make the rooms work on ios but we get an error each time it starts :

Error while creating  DailyCall object
TypeError: undefined is not an object (evaluating 'navigator.mediaDevices.ondevicechange')
(fonction anonyme) — daily-iframe-esm.js:1:79874
i2 — daily-iframe-esm.js:1:84240
value — daily-iframe-esm.js:1:85271

Do you have any idea on the origin of the issue? Is the react video hook working on ios? Maybe you can share a working sample?

@lazeratops
Copy link
Contributor

Hey @anthodb, thanks for reporting this, we'll investigate! Which iOS version are you on, and are you running Safari?

@anthodb
Copy link
Author

anthodb commented Jan 16, 2023

Hey @lazeratops, we are working on iOs 15.0.2 with Safari. Let us know if you need other infos! Thanks

@nienkedekker
Copy link
Contributor

Hey @anthodb - apologies for the delay in responding. I tried reproducing your issue, but couldn't. Are you still running into this issue and if so, where? Locally, or when deployed on Netlify? Thanks! :-)

@NTAK666
Copy link

NTAK666 commented Sep 2, 2023

I also have same problem, I use project with typescript, problem is not only in IOS but also in Android, is work on Web Browser

"typescript": "4.9.5",
"@daily-co/daily-js": "^0.48.0",
"@daily-co/daily-react": "^0.10.0",
"react": "18.2.0",

@nienkedekker
Copy link
Contributor

Hey @NTAK666, so you're saying the demo works on Android/iOS in a web browser - in what other context doesn't it work? The more info, the better! Thank you :)

@NTAK666
Copy link

NTAK666 commented Sep 3, 2023

Hey @NTAK666, so you're saying the demo works on Android/iOS in a web browser - in what other context doesn't it work? The more info, the better! Thank you :)

No, I mean it works in Desktop web browsers and in Android/iOS web browsers (Safari/Chorme) it doesn't work

@nienkedekker
Copy link
Contributor

nienkedekker commented Sep 3, 2023

Thanks! I can replicate the issue on Safari on MacOS and Safari on iOS (I currently don't have an Android phone to test on, unfortunately). First question: are you testing a video call "Safari to Safari" (i.e. opening the same video call in two different tabs)?

If so, this looks like a “standard” Safari testing issue :( Using the same Safari profile in both tabs means only one video will work. If you're doing this, try installing the Safari Technology Preview and then use both Safari’s to do the Safari-to-Safari test. You want to make sure that you use 2 different browser profiles for testing.

Let me know if this doesn't solve the issue and I can take another look on Monday. I believe this is caused by Safari only being able to handle 1 getUserMedia() request on the same website (or even 1 gUM in the entire browser?).

@NTAK666
Copy link

NTAK666 commented Sep 3, 2023

Thanks! I can replicate the issue on Safari on MacOS and Safari on iOS (I currently don't have an Android phone to test on, unfortunately). First question: are you testing a video call "Safari to Safari" (i.e. opening the same video call in two different tabs)?

If so, this looks like a “standard” Safari testing issue :( Using the same Safari profile in both tabs means only one video will work. If you're doing this, try installing the Safari Technology Preview and then use both Safari’s to do the Safari-to-Safari test. You want to make sure that you use 2 different browser profiles for testing.

Let me know if this doesn't solve the issue and I can take another look on Monday.

Thank for your time @nienkedekker, I think you just found a new issue.

1. About my problem: I think my issue is not there because each time I only use 1 device (Iphone) iOS or Android, it can come from typescript when checking the data type. At that time mediaDevices was not received so it got type undefined?

2. The problem you mention: I think it is related to the available devices on your computer, for example my computer (Windows 11) can use 2 tabs at the same time, but when opening the 3rd tab, it has problem.

My project is quite complicated so I can't deploy it yet. Please feel free to contact me if you need more information.

@nienkedekker
Copy link
Contributor

nienkedekker commented Sep 25, 2023

Sorry for the late response, I was OOO. 🙇 but this sounds strange.. I'd really like to reproduce this locally. Can you post the TS error you're getting here, and the exact repro steps to trigger the error? Just to make sure we're on the same page. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants