Questions tagged [picture-in-picture]

Picture-in-Picture allows websites to create a floating video window that is always on top of other windows so that users may continue consuming media while they interact with other sites or applications on their device.

Picture In Picture

The Picture-in-Picture API allows websites to create a floating video window that is always on top of other windows so that users may continue consuming media while they interact with other sites or applications on their device.

Note: Safari use it's own API for now.

Examples:

Google Chrome

Safari

171 questions
18
votes
0 answers

Picture-in-picture feature for WebRTC

Apple introduced picture-in-picture feature for iOS starting version 14.0 while it was available for iPadOS earlier. The feature works fine when using AVFoundation API. For example, import AVFoundation func viewDidLoad() { let playerController…
Hassan Shahbazi
  • 1,543
  • 9
  • 26
17
votes
5 answers

detect close and maximize clicked event in Picture In Picture mode in Android

How can I detect if the user clicked on the native close and maximize button in PIP small window . Are there any listeners I can listen to. Right now my receiver only listens to the controls I defined in my layout but what about the non custom…
luckysing_noobster
  • 1,933
  • 5
  • 24
  • 50
14
votes
1 answer

Is Picture in Picture possible on IOS Simulator?

I'm Trying to use Picture in Picture on IOS Simulator (Iphone 11 - IOS 14.5) but I can't do it, I've tested on youtube, vimeo and raw videos but nothing happens. I've also tried to enable PIP on settings but I couldn't find the option there, maybe…
Gustavo
  • 874
  • 4
  • 13
  • 27
11
votes
3 answers

Getting error when trying to use AVPictureInPictureController in iOS 13 or tvOS 13

I have small app which runs on iOS and tvOS where I’m displaying a video in UIView.It does support iOS 12 and tvOS 12. Now want to show PIP for tvOS hence trying to use AVPictureInPictureController gives error “Use of undeclared identifier…
sia
  • 1,872
  • 1
  • 23
  • 54
11
votes
1 answer

Implementing Picture-In-Picture (PiP)

I'm currently working on integrating the Picture-In-Picture (PiP) feature into video player using custom HTML5 video controls. With the recent introduction of PiP support in Safari 9 at WWDC15, I'm eager to enhance the user experience on my…
TheCrazyProfessor
  • 919
  • 1
  • 15
  • 31
10
votes
4 answers

Android picture-in-picture scale view

Is there a way to use picture-in-picture feature on an activity that is not a video to show it scaled down ? I have an activity with a giant progress bar and some text that I would like to display on PiP window while the user did some web…
Professor Chaos
  • 8,850
  • 8
  • 38
  • 54
7
votes
4 answers

Youtube iframe picture-in-picture mode

I'd like to use JavaScript to enable PiP on Youtube videos. I am able to do so on html