Context indicating how the player is currently being viewed.

interface RNPlayerViewingContext {
    isAirplaying: boolean;
    isBackgrounded: boolean;
    isPipActive: boolean;
    isShareplaying: boolean;
}

Properties

isAirplaying: boolean

Whether content is being played via AirPlay.

isBackgrounded: boolean

Whether the app is in the background.

isPipActive: boolean

Whether Picture-in-Picture (PiP) mode is active.

isShareplaying: boolean

Whether SharePlay is active (iOS).