[vlc-devel] [VLCKit] One black frame when leaving PiP (4.0.0a24, iOS)

Pepe Swamp pepetrixma at gmail.com
Fri Oct 2 23:45:25 UTC 2026


Hi,

With VLCKit 4.0.0a24 on iPadOS 27 (iPad Pro M5, also happens in the
simulator), I get a single fully black frame every time Picture-in-Picture
stops and the video goes back to the inline view.

To reproduce: play anything with the default output and PiP enabled through
VLCPictureInPictureDrawable, background the app so PiP starts, then come
back to the app (stopPictureInPicture or the system restore button, same
result).

I screen-recorded it and went through the frames: the PiP window is still
there on one frame, the next frame is completely black over the whole video
area, then the picture comes back. In the simulator it showed up in every
run I did. Playing or paused makes no difference.

A few things I checked:
- my app doesn't flush the display layer, touch the drawable or resize
anything at that point (I removed all of that to be sure)
- a view placed below the display view doesn't show through during that
frame, so the AVSampleBufferDisplayLayer seems to draw black rather than
being empty/transparent
- it lands roughly 50-100 ms after
pictureInPictureControllerDidStopPictureInPicture

I noticed VLCPictureInPictureController doesn't implement
restoreUserInterfaceForPictureInPictureStopWithCompletionHandler, not sure
if that's related.

I can test a patch or send the recordings if useful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20261003/d34a0982/attachment.htm>


More information about the vlc-devel mailing list