Skip to content

Phone player: Picture-in-Picture #29

Closed

Description

@Quick104

Summary

Implement Picture-in-Picture for video playback on the Android phone app (listed 🚧 in FEATURES.md). Apple has PiP infrastructure built but validation-gated, so shipping this puts Android ahead on a highly requested mobile feature.

Scope

  • enterPictureInPictureMode on user-leave (home gesture) during active video playback, with PictureInPictureParams (aspect ratio from video size, seamless resize, remote actions: play/pause, ±10s)
  • Auto-enter on leave hint (API 31+) with graceful pre-31 behavior
  • Correct interaction with the shared MediaSessionService (android-shared/.../player/SiloPlaybackService.kt): controls stay in sync, PiP close stops the session cleanly, expanding returns to the full player
  • Exclusions: no PiP for audiobook/audio playback (notification already covers it); respect DRM/HDR edge cases with a safe fallback (no crash, just skip PiP)
  • Settings toggle under playback settings

Acceptance criteria

  • Video continues seamlessly into PiP and back; lock screen/notification controls remain consistent
  • No regression to background audio behavior
  • ./gradlew :androidApp:assembleDebug passes

Part of the July 2026 Android↔Apple parity audit.

Activity

  1. added
    enhancement
    parity-audit
    on Jul 3, 2026
  2. Quick104 commented on Sep 11, 2026

    @Quick104
    ContributorAuthor

    Closing as shipped: Picture-in-Picture is ✅ in FEATURES.md and on main (SiloPictureInPictureCoordinator, phone supportsPictureInPicture, player enter-on-home wiring); introduced via feat commit adding PiP playback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementparity-audit

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions