VideoView class
A widget that can display a MediaStream for a Participant.
You can use VideoView in two ways, either as an item of a GridView or a ListView used with the VideoView.withMediaStream constructor or as a stand-alone widget outside of collection widgets, such as GridView or ListView. In this second option, you need to use the VideoView constructor and provide a VideoViewController to the constructor.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- VideoView
Constructors
- VideoView({required VideoViewController? videoViewController, ScaleType? scaleType = ScaleType.fill, Key? key})
-
A constructor that should be used when the VideoView is used as a stand-alone widget
outside of collection widgets such as GridView or ListView. The constructor requires
providing the VideoViewController, the ScaleType, and an optional Key.
const
- VideoView.withMediaStream({required Participant? participant, required MediaStream? mediaStream, ScaleType? scaleType = ScaleType.fill, Key? key})
-
A constructor that should be used when the VideoView is an element in a collection
widget, such as a GridView or a ListView. The constructor requires providing the
Participant for whom the MediaStream should be displayed, the MediaStream, the ScaleType, and an
optional Key.
const
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- mediaStream → MediaStream?
-
@internal
final
- participant → Participant?
-
@internal
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- scaleType → ScaleType?
-
@internal
final
- videoViewController → VideoViewController?
-
@internal
final
- viewType → String
-
@internal
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< VideoView> -
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 non-existent method or property is accessed.
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