StreamSessionViewTexture class

A Flutter widget that renders a native video texture provided by a StreamSession.

This widget displays video frames using Flutter's Texture widget, where the underlying texture is registered and managed by the native platform (iOS/Android).

The scaling behavior of the video inside its layout bounds is controlled by videoGravity. The actual scaling is applied on the native side.

Constructors

StreamSessionViewTexture(StreamSession? session, {dynamic key, VideoGravity videoGravity = VideoGravity.resizeAspect})
Creates a widget that renders the video texture associated with the given StreamSession.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
session StreamSession?
The streaming session responsible for registering and updating the underlying native texture.
final
videoGravity VideoGravity
Controls how the video is resized or scaled within the widget bounds.
final

Methods

createState() → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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