toggle menu
stream-webrtc-android
1.2.2
androidJvm
switch theme
search in API
stream-webrtc-android
/
org.webrtc
/
VideoTrack
Video
Track
open
class
VideoTrack
:
MediaStreamTrack
Java version of VideoTrackInterface.
Members
Constructors
Video
Track
Link copied to clipboard
constructor
(
nativeTrack
:
Long
)
Inherited properties
AUDIO_TRACK_KIND
Link copied to clipboard
val
AUDIO_TRACK_KIND
:
String
=
"audio"
VIDEO_TRACK_KIND
Link copied to clipboard
val
VIDEO_TRACK_KIND
:
String
=
"video"
Functions
add
Sink
Link copied to clipboard
open
fun
addSink
(
sink
:
VideoSink
)
Adds a VideoSink to the track.
dispose
Link copied to clipboard
open
fun
dispose
(
)
remove
Sink
Link copied to clipboard
open
fun
removeSink
(
sink
:
VideoSink
)
Removes a VideoSink from the track.
set
Should
Receive
Link copied to clipboard
open
fun
setShouldReceive
(
shouldReceive
:
Boolean
)
For a remote video track, starts/stops receiving the video stream.
should
Receive
Link copied to clipboard
open
fun
shouldReceive
(
)
:
Boolean
The current receive status for a remote video track.
Inherited functions
enabled
Link copied to clipboard
open
fun
enabled
(
)
:
Boolean
id
Link copied to clipboard
open
fun
id
(
)
:
String
kind
Link copied to clipboard
open
fun
kind
(
)
:
String
set
Enabled
Link copied to clipboard
open
fun
setEnabled
(
enable
:
Boolean
)
:
Boolean
state
Link copied to clipboard
open
fun
state
(
)
:
MediaStreamTrack.State