Local Screencast Video Track
class LocalScreencastVideoTrack @AssistedInject constructor(@Assisted capturer: VideoCapturer, @Assisted source: VideoSource, @Assisted name: String, @Assisted options: LocalVideoTrackOptions, @Assisted rtcTrack: VideoTrack, @Assisted mediaProjectionCallback: LocalScreencastVideoTrack.MediaProjectionCallback, peerConnectionFactory: PeerConnectionFactory, context: Context, eglBase: EglBase, defaultsManager: DefaultsManager, videoTrackFactory: LocalVideoTrack.Factory) : LocalVideoTrack
Constructors
Link copied to clipboard
@AssistedInject
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
A foreground service is generally required prior to startCapture for screen capture. This method starts up a helper foreground service that only serves to display a notification while capturing. This foreground service will automatically stop upon the end of screen capture.
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.