android / android/media-samples

how can i received callback when pip was closed

Open
#19 5 comments 0 reactions 0 assignees View on GitHub
migrated googlesamples
Dominant language
Kotlin
Stars
1.4k
Forks
781
PR merge metrics
No merged PRs in 30d

Description

when pip window was closed, my app still playing the video. i'm unwilling to stop video when onStop called, because maybe it just restored fullscreen. So i hope receive closed callback, i can really destroy activity and release my MediaPlayer.

Contributor guide

Open the contributing guide

Research direction

No file or test is identified in the issue. Start by locating the sample's picture-in-picture lifecycle handling and determine how it distinguishes a real PiP close from fullscreen restoration. Done means the app can release its MediaPlayer only after a confirmed PiP close, without stopping playback during restoration.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
audio-video-rtc, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.