Is Picture in Picture supported for WebRTC / WebView video on iOS (outside app)?



Hello,


I am implementing video calling on iOS and need to support Picture in Picture (PiP) behavior similar to FaceTime or WhatsApp.


What works


Audio continues correctly in background

  • CallKit UI works as expected
  • Video works correctly while the app is in the foreground


What I’m trying to achieve


When the user presses the Home button or switches apps, I want to show a system Picture in Picture window (floating video outside the app).


Current setup

Video is rendered via WebRTC

The video is displayed inside a WKWebView (HTML / JavaScript)

  • PiP works only while the app is foregrounded
  • When the app backgrounds, the video disappears (only audio remains)


Questions


  1. Does iOS support system Picture in Picture for:

WebRTC video

WKWebView / HTML video


2 Is AVPictureInPictureController limited only to:

AVPlayerLayer

AVSampleBufferDisplayLayer


3 If PiP requires native rendering:

Is it mandatory to render WebRTC frames natively using AVSampleBufferDisplayLayer?

Is PiP explicitly unsupported for WebView / HTML video?


📌 Clarification


Apps like FaceTime and WhatsApp are able to show PiP outside the app.


I want to understand whether this behavior is achievable only with native video pipelines, or if WebView-based video is fundamentally restricted by iOS.

Any official clarification or documentation reference would be appreciated.


Thank you.

Posted on Dec 19, 2025 5:22 AM

Reply
1 reply

Is Picture in Picture supported for WebRTC / WebView video on iOS (outside app)?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.