-
public final class RemoteVideoTrack extends VideoTrack
-
-
Field Summary
Fields Modifier and Type Field Description private final Boolean
autoManageVideo
private Boolean
enabled
private final VideoTrack
rtcTrack
private final EventListenable<TrackEvent>
events
private String
name
private Track.Kind
kind
private String
sid
private Track.StreamState
streamState
private Function1<RTCStatsCollectorCallback, Unit>
statsGetter
-
Constructor Summary
Constructors Constructor Description RemoteVideoTrack(String name, VideoTrack rtcTrack, Boolean autoManageVideo, CoroutineDispatcher dispatcher, RtpReceiver receiver)
-
Method Summary
Modifier and Type Method Description final Boolean
getAutoManageVideo()
final Boolean
getEnabled()
final Unit
setEnabled(Boolean enabled)
VideoTrack
getRtcTrack()
final EventListenable<TrackEvent>
getEvents()
final String
getName()
final Unit
setName(String name)
final Track.Kind
getKind()
final Unit
setKind(Track.Kind kind)
final String
getSid()
final Unit
setSid(String sid)
final Track.StreamState
getStreamState()
final Unit
setStreamState(Track.StreamState streamState)
final Function1<RTCStatsCollectorCallback, Unit>
getStatsGetter()
final Unit
setStatsGetter(Function1<RTCStatsCollectorCallback, Unit> statsGetter)
Unit
addRenderer(VideoSink renderer)
If autoManageVideo
is enabled, a VideoSinkVisibility should be passed, using ViewVisibility if using a traditional View layout, or ComposeVisibility if using Jetpack Compose.final Unit
addRenderer(VideoSink renderer, VideoSinkVisibility visibility)
Unit
removeRenderer(VideoSink renderer)
Remove a previously added VideoSink. Unit
stop()
Stops the track. Unit
dispose()
Disposes the track. -
-
Method Detail
-
getAutoManageVideo
final Boolean getAutoManageVideo()
-
getEnabled
final Boolean getEnabled()
-
setEnabled
final Unit setEnabled(Boolean enabled)
-
getRtcTrack
VideoTrack getRtcTrack()
-
getEvents
final EventListenable<TrackEvent> getEvents()
-
getKind
final Track.Kind getKind()
-
setKind
final Unit setKind(Track.Kind kind)
-
getStreamState
final Track.StreamState getStreamState()
-
setStreamState
final Unit setStreamState(Track.StreamState streamState)
-
getStatsGetter
final Function1<RTCStatsCollectorCallback, Unit> getStatsGetter()
-
setStatsGetter
final Unit setStatsGetter(Function1<RTCStatsCollectorCallback, Unit> statsGetter)
-
addRenderer
Unit addRenderer(VideoSink renderer)
If
autoManageVideo
is enabled, a VideoSinkVisibility should be passed, using ViewVisibility if using a traditional View layout, or ComposeVisibility if using Jetpack Compose.By default, any Views passed to this method will be added with a ViewVisibility.
-
addRenderer
final Unit addRenderer(VideoSink renderer, VideoSinkVisibility visibility)
-
removeRenderer
Unit removeRenderer(VideoSink renderer)
Remove a previously added VideoSink.
-
-
-
-