VideoPlayerPip class

A Flutter plugin that adds Picture-in-Picture (PiP) functionality to the video_player package.

This plugin provides methods to enter and exit PiP mode, check if PiP is supported on the current device, and monitor PiP state changes.

Properties

hashCode int
The hash code for this object.
no setterinherited
onPipModeChanged Stream<bool>
Stream of PiP mode state changes.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Disposes resources used by the plugin.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
togglePipMode(VideoPlayerController controller, {int? width, int? height}) Future<bool>
Toggles Picture-in-Picture mode.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance VideoPlayerPip
The shared instance of VideoPlayerPip.
no setter

Static Methods

enterPipMode(VideoPlayerController controller, {int? width, int? height}) Future<bool>
Enters Picture-in-Picture mode for the given video player controller.
exitPipMode() Future<bool>
Exits Picture-in-Picture mode if currently active.
isInPipMode() Future<bool>
Checks if the app is currently in PiP mode.
isPipSupported() Future<bool>
Checks if the device supports PiP mode