Hello everyone,
I'm trying to access the camera of iPhone(iOS 17) in safari with a web app I'm building on Node-Red(v3.1.3) (Node.js v20.11.0). What I want to do is to display camera feed on Dashboard 2.0 and be able to take a picture, record video and store them in the server. I am using the code shared in this StackOverflow question in a ui-template node.
So far I'm able to implement this code in Node-Red and it works on PC Chrome. Chrome asks me to enable the camera for the dashboard and if I allow I can view the camera output. But when I try to use same dashboard on iPhone Safari, I cannot see the camera display. It doesn't even ask for my permission to use the camera. By the way when I open the CodePen link shared in the StackOverflow question on my iPhone, it actually works, so I know the code works fine. Can you help me find what's wrong?.
Below is the exported Node-Red flow I've built so far.
Thanks.