PipVideoState

class PipVideoState(val videoWidth: Int, val videoHeight: Int, val sourceBounds: Rect?, val isPlaying: Boolean, val autoEnterEligible: Boolean)

Snapshot of the video state a PipHandler needs to keep the system PiP parameters current. Produced by OGPlayerView; hosts implementing PipHandler directly receive it via PipHandler.onPipStateChanged.

Constructors

Link copied to clipboard
constructor(videoWidth: Int, videoHeight: Int, sourceBounds: Rect?, isPlaying: Boolean, autoEnterEligible: Boolean)

Properties

Link copied to clipboard

Whether leaving the app right now should auto-enter PiP.

Link copied to clipboard

Whether playback is actively progressing.

Link copied to clipboard

The video surface's on-screen bounds (the shrink-animation hint).

Link copied to clipboard

Height of the playing video in pixels, 0 when unknown.

Link copied to clipboard

Width of the playing video in pixels, 0 when unknown.