You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VOD load option to reuse the native AVPlayer across loads so system PiP survives next-episode transitions #158
Sodalite tvOS PiP (host-built AVPictureInPictureController around a second AVPlayerLayer, Sodalite feature/tvos-pip) works for start, restore, close, background keepalive (5.11.0), and subtitles. The one unsupported flow is next-episode auto-advance while the PiP window is open: the window closes mid-transition.
Device evidence (Apple TV 4K 3rd gen, console-attached)
The next-episode reload builds a fresh NativeAVPlayerHost (log: #1 -> #2, fresh t+0.00 KVO stamps) with a new loopback session. Three host-side mitigations were tried and all failed on device:
Keeping the AVPictureInPictureController alive through the currentAVPlayer nil gap.
Keeping the old (stopped) player attached to the source layer through the gap and skipping AVKit re-binds.
Firing the advance 4s early so the swap lands while the old item still plays (no didPlayToEndTime before the swap; window still closed while host HDR10+ and Dolby Vision missing dynamic metadata #2 was coming up).
The system closes the PiP window whenever its source layer's player is replaced or left without an active item. Platform behavior matches Apple's guidance: PiP survives item transitions only on the SAME player instance (AVQueuePlayer / replaceCurrentItem patterns).
Requested capability
A load path (option or dedicated API) that keeps the current AVPlayer instance and swaps only the AVPlayerItem onto the new loopback session, ideally with the new item prepared before the swap (gapless handover, queue-style). NativeAVPlayerHost reuse infrastructure partially exists (stopInternal keepNativeHost, issue #15 MediaRemote re-registration), but a regular load() still ends in a fresh player as observed by the layer.
Host adoption (Sodalite): re-enable next-episode auto-advance during PiP once the player identity is stable across the transition. Until then the host disables auto-advance while PiP is active (v1, episode runs out inside the window).
Activity
feat(loading): in-place AVPlayerItem handover across native loads whi…
feat(api): the native path hands out its layer, the software path its…
fix(native): the layer readiness reports for the session that owns th…