picture-in-picture icon indicating copy to clipboard operation
picture-in-picture copied to clipboard

Picture in Picture with getUserMedia on iPhone Safari

Open virafpatrawala opened this issue 3 years ago • 2 comments

I'm trying to use the Picture in Picture API with a video element receiving a getUserMedia stream. This is working well on the PC (safari and chrome) but I am getting an error on iPhone Safari:

Unhandled Promise Rejection: NotSupportedError: The video element does not support the Picture-in-Picture mode.

Wanted to confirm if this is just not supported, or am I making some mistake. If so, can you please suggest any work-arounds for the same?

Thanks!

virafpatrawala avatar Aug 30 '21 03:08 virafpatrawala

@jernoble may know

beaufortfrancois avatar Aug 30 '21 07:08 beaufortfrancois

Unfortunately, iOS WebKit has to block PiP for video elements backed by a MediaStream because the system doesn't allow camera capture when an application is in the background.

eric-carlson avatar Aug 30 '21 22:08 eric-carlson