Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Picture-in-Picture (PictureInPictureSampleApp)

Enters Android Picture-in-Picture mode so playback continues in a small floating window while the user leaves the app. A companion settings screen lets you adjust PiP behavior such as closed-caption display, aspect ratio, and whether entering the home screen triggers PiP.

Key files

File Responsibility
MainActivity.java Fetches a video and applies saved PiP settings on resume.
SettingsActivity.java Hosts the preference screen for editing PiP options.
SettingsModel.java Reads PiP preferences (captions, scale factor, aspect ratio) from shared preferences.

See the Playback README for shared setup and requirements.