VideoPresentationService class Services

The VideoPresentationService allows sharing videos during a conference. To present a video, a conference participant needs to provide the URL of the video file. We recommend sharing files in the MPEG-4 Part 14 or MP4 video formats.

The video presentation workflow:

  1. The presenter calls the start method to start the video presentation. This method automatically starts playing the shared video file.

  2. All participants receive the VideoPresentationEventNames.videoPresentationStarted event.

  3. The presenter can call the pause method to pause the shared video. In such a situation, all conference participants receive the VideoPresentationEventNames.videoPresentationPaused event.

  4. The presenter can call the play method to resume the paused video. In this situation, all conference participants receive the VideoPresentationEventNames.videoPresentationPlayed event.

  5. The presenter can call the seek method to navigate to a specific section of the shared video. This method applies the provided timestamp. After calling the seek method, all conference participants receive the VideoPresentationEventNames.videoPresentationSought event and watch the video from the specified timestamp.

  6. The presenter calls the stop method to stop the video presentation.

Constructors

VideoPresentationService()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

currentVideo() Future<VideoPresentation?>
Returns information about the current video presentation.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
onVideoPresentationChange() Stream<Event<VideoPresentationEventNames, VideoPresentation>>
Returns a Stream of the VideoPresentationEventNames.videoPresentationStarted, VideoPresentationEventNames.videoPresentationPaused, VideoPresentationEventNames.videoPresentationPlayed, and VideoPresentationEventNames.videoPresentationSought events. By subscribing to the returned stream you will be notified about status changes of video presentations.
onVideoPresentationStopped() Stream<Event<VideoPresentationEventNames, void>>
Returns a Stream of the VideoPresentationEventNames.videoPresentationStopped events. By subscribing to the returned stream you will be notified each time a video presentation ends.
pause(num timestamp) Future<void>
Pauses a video presentation at a certain timestamp, in milliseconds.
play() Future<void>
Resumes the paused video.
seek(num timestamp) Future<void>
Allows a presenter to navigate to a specific section of the shared video file. The timestamp parameter refers to the timestamp at which the video should start, in milliseconds.
start(String url) Future<void>
Starts a video presentation. The url parameter refers to a video file that the local participant would like to share.
state() Future<VideoPresentationState>
Provides the current state of a video presentation.
stop() Future<void>
Stops a video presentation.
toString() String
A string representation of this object.
inherited

Operators

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