Menu

📰
0

AVPictureInPictureController shows a large black container even with a 72×72 source

Reddit r/swift·u/Individual_Leg_5426·about 1 month ago
#zitkGmJm
#small#floating#bubble#system#black#article
Reading 0:00
15s threshold

AVPictureInPictureController shows a large black container even with a 72×72 source I’m building an iOS camera-assistant app. The goal is to show a small floating guidance bubble on top of the system Camera app or other camera apps, so it can provide composition / focal length / subject positioning suggestions while the user is taking photos. Since iOS does not provide a normal Android-style overlay window, I’m currently experimenting with Picture in Picture as a workaround. The actual floating UI is only 72×72, and I have also tried setting the PiP video canvas / source size to 72×72. However, the system still displays a much larger rounded black PiP rectangle, with my small bubble in the center. The black container remains much bigger than expected. My current understanding is: 1. PiP is a system-managed video playback window, not a general-purpose floating overlay. 2. The outer PiP window may have a minimum system-controlled display size. 3.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More