ZegoStreamInfo class

Information class for managing video stream data.

This class contains all the information needed to manage a video stream, including stream ID, device states, player state, and view information.

Example usage:

ZegoStreamInfo streamInfo = ZegoStreamInfo.empty();
streamInfo.streamID = 'your_stream_id';
streamInfo.camera.value = true;

Constructors

ZegoStreamInfo.empty()
Create an empty ZegoStreamInfo instance.

Properties

camera ValueNotifier<bool>
Camera state for the stream.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
microphone ValueNotifier<bool>
Microphone state for the stream.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stateNotifier ValueNotifier<ZegoPlayerState>
Current player state for the stream.
getter/setter pair
streamID String
Unique identifier for the video stream.
getter/setter pair
viewIDNotifier ValueNotifier<int?>
View ID for the stream's video view.
getter/setter pair
viewNotifier ValueNotifier<Widget?>
Widget for the stream's video view.
getter/setter pair
viewSizeNotifier ValueNotifier<Size>
Size of the video view.
getter/setter pair

Methods

clear() → void
Clear all stream information and reset to default values.
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