For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
StatusSupportDiscussionsLog inSign Up
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
Docs HomeAPI ReferenceVideo on DemandAI FeaturesLive StreamingVideo PlayerVideo DataCloud PlayoutRecipes
  • Player SDKs
    • Introduction
  • Web player
    • Install the FastPix web player
    • Play uploaded videos
    • Handle playback errors
  • Android player
    • Install FastPix Android player
    • Set up the player
    • Play uploaded videos
    • Handle playback errors
  • iOS player
    • Install FastPix iOS player
    • Play uploaded videos
    • Handle playback errors
      • Secure video playback
      • Play DRM-protected content
      • Use a custom domain
      • Switch audio tracks
      • Switch subtitle tracks
      • Add seek preview thumbnails
      • Enable Picture-in-Picture
      • Enable full-screen mode
      • Manage playlists
      • Add skip controls
      • Handle network changes
  • Flutter player
    • Install FastPix Flutter player
    • Play uploaded videos
    • Handle playback errors
LogoLogo
StatusSupportDiscussionsLog inSign Up
On this page
  • Enable PiP
  • Start and stop PiP
  • Check PiP state
  • Observe PiP state changes
iOS playerAdvanced features

Enable Picture-in-Picture

Was this page helpful?
Previous

Enable full-screen mode

Next
Built with

Learn how to enable Picture-in-Picture (PiP) in the FastPix iOS Player so playback continues when the app goes to the background.

The FastPix iOS Player supports system Picture-in-Picture on iOS 14 and later.

Enable PiP

1playerViewController.enablePiP = true
2playerViewController.setupPiP(parent: self)

Note: Call setupPiP(parent:) after the view appears. Don’t release the player while PiP is active.

Start and stop PiP

Toggle PiP programmatically:

1playerViewController.togglePiP()

Check PiP state

Check whether PiP is currently active before performing actions that might conflict:

1if playerViewController.isPiPActive() {
2 return
3}

Observe PiP state changes

Listen for PiP state and availability changes using notifications:

1// Notified when PiP starts or stops
2FastPixPiPStateChangedNotification
3
4// Notified when PiP availability changes
5FastPixPiPAvailabilityChangedNotification