PrepopulateUserMediaOptions class

Configuration options for the prepopulateUserMedia function. This function populates the main media grid with video, audio, or mini-cards based on the media activity of the participant. It dynamically updates the main media grid based on the EventType and participant settings. The function returns a list of widgets representing the media display or an empty list for inactive states. It also catches errors during the media card setup and provides debugging messages in development mode.

Parameters:

  • name: The name of the participant.
  • parameters: The PrepopulateUserMediaParameters containing participant details and media settings, along with methods for dynamic state updates.

Returns:

  • A list of widgets representing the media display, or an empty list for inactive states.

Example Usage:

final options = PrepopulateUserMediaOptions(
 name: 'Host',
parameters: mediaParameters,
);

await prepopulateUserMedia(options);

Constructors

PrepopulateUserMediaOptions({required String name, required PrepopulateUserMediaParameters parameters})

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
final
parameters PrepopulateUserMediaParameters
final
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
toString() String
A string representation of this object.
inherited

Operators

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