PlayerView class

A view that provides the Bitmovin Player Web UI and default UI handling to an attached Player instance.

Inheritance

Constructors

PlayerView({required Player player, PlayerViewConfig playerViewConfig = const PlayerViewConfig(), Key? key, void onViewCreated()?, FullscreenHandler? fullscreenHandler, void onFullscreenEnter(FullscreenEnterEvent)?, void onFullscreenExit(FullscreenExitEvent)?, void onPictureInPictureEnter(PictureInPictureEnterEvent)?, void onPictureInPictureEntered(PictureInPictureEnteredEvent)?, void onPictureInPictureExit(PictureInPictureExitEvent)?, void onPictureInPictureExited(PictureInPictureExitedEvent)?})

Properties

fullscreenHandler FullscreenHandler?
Handles entering and exiting fullscreen mode. A custom implementation needs to be provided that is aware of the view hierarchy where the PlayerView is embedded and can handle the UI state changes accordingly. If no fullscreenHandler is provided, the fullscreen feature is disabled.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onFullscreenEnter → (void Function(FullscreenEnterEvent)?)
final
onFullscreenExit → (void Function(FullscreenExitEvent)?)
final
onPictureInPictureEnter → (void Function(PictureInPictureEnterEvent)?)
final
onPictureInPictureEntered → (void Function(PictureInPictureEnteredEvent)?)
final
onPictureInPictureExit → (void Function(PictureInPictureExitEvent)?)
final
onPictureInPictureExited → (void Function(PictureInPictureExitedEvent)?)
final
onViewCreated → (void Function()?)
Callback that is invoked when the view has been created and is ready to be used. Can be for instance used to load a source into the player.
final
player Player
The Player instance that is attached to this view.
final
playerViewConfig PlayerViewConfig
The player view config. A default PlayerViewConfig is set initially.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onEvent(dynamic event) → void
Takes an event as JSON that was received from the native platform, deserializes it to a typed event object and emits it to the corresponding event listener.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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