Package tvi.webrtc
Class VideoTrack
java.lang.Object
tvi.webrtc.MediaStreamTrack
tvi.webrtc.VideoTrack
Java version of VideoTrackInterface.
-
Nested Class Summary
Nested classes/interfaces inherited from class tvi.webrtc.MediaStreamTrack
MediaStreamTrack.MediaType, MediaStreamTrack.State
-
Field Summary
Fields inherited from class tvi.webrtc.MediaStreamTrack
AUDIO_TRACK_KIND, VIDEO_TRACK_KIND
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a VideoSink to the track.void
dispose()
void
removeSink
(VideoSink sink) Removes a VideoSink from the track.Methods inherited from class tvi.webrtc.MediaStreamTrack
enabled, id, kind, setEnabled, state
-
Constructor Details
-
VideoTrack
public VideoTrack(long nativeTrack)
-
-
Method Details
-
addSink
Adds a VideoSink to the track. A track can have any number of VideoSinks. VideoSinks will replace renderers. However, converting old style texture frames will involve costly conversion to I420 so it is not recommended to upgrade before all your sources produce VideoFrames. -
removeSink
Removes a VideoSink from the track. If the VideoSink was not attached to the track, this is a no-op. -
dispose
public void dispose()- Overrides:
dispose
in classMediaStreamTrack
-