RoomParticipantController class abstract

Room participant video view for displaying participant video streams.

RoomParticipantView View component for displaying room participant video streams. RoomParticipantView is a view component specifically designed for rendering room participant video streams. It supports both camera and screen sharing video stream types, and provides fill mode settings, active state control and other features.

Key Features

  • Video Stream Rendering:Supports rendering camera video streams and screen sharing video streams
  • Fill Mode:Supports FILL and FIT video fill modes
  • Active State:Supports setting the active state of the view to control video rendering
  • Gesture Interaction:Supports click and other gesture interactions

Note: Before use, you need to initialize the video stream type and participant info through RoomParticipantController.create method.

Topics

Creating Instance

Video Stream Control

View Settings

Interaction

See Also

Use RoomParticipantController.create to create an instance, then pass it to RoomParticipantWidget to display the video.

Constructors

RoomParticipantController()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setActive(bool isActive) → void
Set active state
setFillMode(FillMode fillMode) → void
Set fill mode
setOnClickAction(VoidCallback action) → void
Set click callback
toString() String
A string representation of this object.
inherited
updateParticipant(RoomParticipant participant) → void
Update participant info
updateStreamType(VideoStreamType streamType) → void
Update video stream type

Operators

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

Static Methods

create({required VideoStreamType streamType, required RoomParticipant participant}) RoomParticipantController
Create controller instance