Package tvi.webrtc
Class VideoTrack
- java.lang.Object
-
- tvi.webrtc.MediaStreamTrack
-
- tvi.webrtc.VideoTrack
-
public class VideoTrack extends MediaStreamTrack
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
Constructors Constructor Description VideoTrack(long nativeTrack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSink(VideoSink sink)
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
-
-
-
-
Method Detail
-
addSink
public void addSink(VideoSink sink)
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
public void removeSink(VideoSink sink)
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
-
-