Local Video Track
open class LocalVideoTrack @AssistedInject constructor(@Assisted capturer: VideoCapturer, @Assisted source: VideoSource, @Assisted name: String, @Assisted options: LocalVideoTrackOptions, @Assisted rtcTrack: VideoTrack, peerConnectionFactory: PeerConnectionFactory, context: Context, eglBase: EglBase, defaultsManager: DefaultsManager, trackFactory: LocalVideoTrack.Factory, @Assisted dispatchObserver: CaptureDispatchObserver? = null) : VideoTrack
A representation of a local video track (generally input coming from camera or screen).
startCapture should be called before use.
Inheritors
Constructors
Link copied to clipboard
@AssistedInject
Types
Properties
Functions
Link copied to clipboard
Add a VideoSink that will receive frames.
Link copied to clipboard
Return the RTCStatsReport for this track, or null if none is available.
Calls the callback with the RTCStatsReport for this track, or null if none is available.
Link copied to clipboard
Remove a previously added VideoSink.
Link copied to clipboard
fun restartTrack(options: LocalVideoTrackOptions = defaultsManager.videoTrackCaptureDefaults.copy())
Restart a track with new options.
Link copied to clipboard
If this is a camera track, switches to the new camera determined by deviceId
Link copied to clipboard
Link copied to clipboard
Stops the capturer.
Link copied to clipboard
Switch to a different camera. Only works if this track is backed by a camera capturer.