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

Issue with "Taking still photos with getUserMedia()": Doesn't work on the iPhone #7997

Open
tptech opened this issue Aug 17, 2021 · 1 comment
Labels
area: MediaStreams Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!

Comments

@tptech
Copy link

tptech commented Aug 17, 2021

MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API/Taking_still_photos

What information was incorrect, unhelpful, or incomplete?

This is a great example; thank you.

The only problem with this example (not of your making, I suspect) is that it doesn't work on an iPhone. I want to use this kind of functionality on my website, but the main browser client for our customers is the iPhone, and it just doesn't work.

On the iPhone (Safari, iOS 14.7.1) I get a black box for the video input, and a single frame capture when clicking the "Take photo" button from when the webpage loads, but then the image never updates thereafter.

I've hunted all over the Interwebs, and posted questions on a number of technical question/answer sites, but have yet to get any insight into why this code doesn't work on the iPhone. (The only hint I've seen is a conspiracy theory about Apple not wanting to support this functionality on the iPhone.)

So, do you good, and knowledgeable folk have any insight into why this doesn't work on the iPhone? The MDN compatibility tables suggest that it should work on the iPhone.

By the way, it does work on the iPad (Safari, iPadOS 14.7.1) ¯_(ツ)_/¯

Specific section or headline?

The problem is with the code solution … so, the code samples, and the GitHub repository, I guess.

What did you expect to see?

I expected the code to work as specified; as it does on Chrome. Firefox, iPad, … Nobody appears to be talking about it.

Did you test this? If so, how?

I created a CodePen here, a copy of the GitHub repository code, and tried it out.

MDN Content page report details
@sideshowbarker sideshowbarker added Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help! labels Aug 17, 2021
@Rumyra Rumyra added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Nov 25, 2021
@sideshowbarker
Copy link
Collaborator

I’ve confirmed that what the issue description says is still accurate as of iOS 15.5 on the iPhone — but I don’t have any idea myself why it doesn’t work as expected on the iPhone.

@sideshowbarker sideshowbarker removed the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jun 25, 2022
@Josh-Cena Josh-Cena added the area: WebRTC Needs help from someone with WebRTC domain knowledge label Jun 26, 2023
@Josh-Cena Josh-Cena changed the title Issue with "Taking still photos with WebRTC": Doesn't work on the iPhone Jun 5, 2024
@Josh-Cena Josh-Cena added area: MediaStreams and removed area: WebRTC Needs help from someone with WebRTC domain knowledge labels Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: MediaStreams Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!
4 participants