Picture-in-Picture & AirPlay
To enable Picture-in-Picture and AirPlay in your app:
- In Xcode, select your project.
- Open the Signing & Capabilities tab.
- Click + Capability.
- Search for Background Modes and add it.
- Tick Audio, AirPlay and Picture in Picture.
That's it — the SDK handles the rest at runtime.
caution
These features are only available on a physical device. They will not work in the iOS Simulator.
SwiftUI apps
The same capability applies. SwiftUI apps that embed BBNativePlayer from the SwiftUI module inherit this behavior automatically — no additional code is required.