RTCStream Class Properties - Flutter
id
-
type:
String -
Represents the id for that stream. It is the stream's key in
participant.streams.
kind
-
type:
MediaType -
kindrepresents the type of stream:MediaType.AUDIO,MediaType.VIDEO,MediaType.SHAREorMediaType.SHARE_AUDIO.SHARE_AUDIOis screen-share audio, separate from the microphone, and has norenderer.
Example
if (stream.kind == MediaType.VIDEO) {
// show it with RTCVideoView(stream.renderer!)
}
participantId
-
type:
String -
The id of the participant the stream belongs to.
renderer
-
type:
RTCVideoRenderer? -
This is a renderer, which is passed to RTCVideoView widget.
-
It is
nullfor audio streams. The SDK creates it, so you do not need to callinitialize()ordispose()on it. -
renderer.setMirror(bool)flips the video horizontally in everyRTCVideoViewthat shows this renderer. It overrides the view'smirror:parameter. -
renderer.videoWidthandrenderer.videoHeightreport the video size, andrenderer.onResizeis called when it changes.
isLocal
-
type:
bool -
trueif the stream belongs to the local participant,falsefor a remote participant's stream. -
Only remote streams can be paused and resumed. To pause or resume a stream, call
pause()andresume()on the stream itself. -
For stats, use the participant's
getVideoStats(),getAudioStats()orgetShareStats().
Got a Question? Ask us on discord

