LocalScreencastVideoTrack

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

Types

Companion
Link copied to clipboard
object Companion
Factory
Link copied to clipboard
@AssistedFactory()
interface Factory
MediaProjectionCallback
Link copied to clipboard
class MediaProjectionCallback : MediaProjection.Callback
Needed to deal with circular dependency.

Functions

addRenderer
Link copied to clipboard
open fun addRenderer(renderer: VideoSink)
dispose
Link copied to clipboard
open override fun dispose()
getRTCStats
Link copied to clipboard
suspend fun getRTCStats(): RTCStatsReport?
Return the RTCStatsReport for this track, or null if none is available.
fun getRTCStats(callback: RTCStatsCollectorCallback)
Calls the callback with the RTCStatsReport for this track, or null if none is available.
removeRenderer
Link copied to clipboard
open fun removeRenderer(renderer: VideoSink)
restartTrack
Link copied to clipboard
fun restartTrack(options: LocalVideoTrackOptions = defaultsManager.videoTrackCaptureDefaults.copy())
Restart a track with new options.
setDeviceId
Link copied to clipboard
fun setDeviceId(deviceId: String)
setPublishingCodecs
Link copied to clipboard
fun setPublishingCodecs(codecs: List<<ERROR CLASS>>): List<VideoCodec>
start
Link copied to clipboard
open fun start()
startCapture
Link copied to clipboard
open fun startCapture()
startForegroundService
Link copied to clipboard
suspend fun startForegroundService(notificationId: Int?, notification: Notification?)
A foreground service is generally required prior to startCapture for screen capture.
stop
Link copied to clipboard
open override fun stop()
stopCapture
Link copied to clipboard
open fun stopCapture()
switchCamera
Link copied to clipboard
fun switchCamera(deviceId: String? = null, position: CameraPosition? = null)
Switch to a different camera.

Properties

dimensions
Link copied to clipboard
val dimensions: Track.Dimensions
enabled
Link copied to clipboard
var enabled: Boolean
events
Link copied to clipboard
val events: EventListenable<TrackEvent>
kind
Link copied to clipboard
var kind: Track.Kind
name
Link copied to clipboard
var name: String
options
Link copied to clipboard
@FlowObservable()
var options: LocalVideoTrackOptions
rtcTrack
Link copied to clipboard
open override var rtcTrack: VideoTrack
sid
Link copied to clipboard
var sid: String? = null
statsGetter
Link copied to clipboard
var statsGetter: RTCStatsGetter? = null
streamState
Link copied to clipboard
var streamState: Track.StreamState

Sources

SDK source
Link copied to clipboard