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

Issues with camera sharing on mobile browsers #3

Open
elid0928 opened this issue Jan 5, 2025 · 6 comments
Open

Issues with camera sharing on mobile browsers #3

elid0928 opened this issue Jan 5, 2025 · 6 comments
Labels
documentation Improvements or additions to documentation

Comments

@elid0928
Copy link

elid0928 commented Jan 5, 2025

Can frontend pages be optimized for cross-platform compatibility, specifically for mobile browsers? I'm experiencing a failure with the camera functionality when accessing a demo on my mobile device.

@ViaAnthroposBenevolentia
Copy link
Owner

Hi! I've pushed some changes for that yesterday and I thought it was pretty much compatible. Can you please provide screenshots or additional information about the issue?

@elid0928
Copy link
Author

elid0928 commented Jan 5, 2025

thanks for response
Additional information:
photo_2025-01-05_13-41-51
commit: d4ed1d5

For testing, I used iOS 18.1.1 with Chrome version 131.0.6778.154, and the built-in browser on OPPO Android devices.

thanks

@ViaAnthroposBenevolentia
Copy link
Owner

Thanks for the feedback. I should be able to fix it today.

@elid0928
Copy link
Author

elid0928 commented Jan 5, 2025

Hi ,
I've resolved the issue by redeploying this demo on my cloud server and enabling TLS/HTTPS for my service. When I tested it on my iOS Chrome, it worked as expected. The details are as follows:

npx http-server

use nginx to reverse this service

on mobile chrome
visit https://,

It seems like navigator.mediaDevices.getUserMedia() must use a secure HTTPS connection

https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia

@ViaAnthroposBenevolentia
Copy link
Owner

Well done, thanks!

@ViaAnthroposBenevolentia
Copy link
Owner

I'll leave this open for a few days. Will add this to readme or make necessary changes for compatibility.

@ViaAnthroposBenevolentia ViaAnthroposBenevolentia added the documentation Improvements or additions to documentation label Jan 7, 2025
WhenjaySun pushed a commit to WhenjaySun/gemini-2-live-api-demo that referenced this issue Jan 7, 2025
WhenjaySun pushed a commit to WhenjaySun/gemini-2-live-api-demo that referenced this issue Jan 7, 2025
WhenjaySun pushed a commit to WhenjaySun/gemini-2-live-api-demo that referenced this issue Jan 7, 2025
…n mobile when turning on the mic"

This reverts commit 7e2a03e.
@ViaAnthroposBenevolentia ViaAnthroposBenevolentia changed the title support mobile device Issues with camera sharing on mobile browsers Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants