Package tvi.webrtc
Class MediaStreamTrack
- java.lang.Object
-
- tvi.webrtc.MediaStreamTrack
-
- Direct Known Subclasses:
AudioTrack
,VideoTrack
public class MediaStreamTrack extends java.lang.Object
Java wrapper for a C++ MediaStreamTrackInterface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MediaStreamTrack.MediaType
static class
MediaStreamTrack.State
Tracks MediaStreamTrackInterface.TrackState
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AUDIO_TRACK_KIND
static java.lang.String
VIDEO_TRACK_KIND
-
Constructor Summary
Constructors Constructor Description MediaStreamTrack(long nativeTrack)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
boolean
enabled()
java.lang.String
id()
java.lang.String
kind()
boolean
setEnabled(boolean enable)
MediaStreamTrack.State
state()
-
-
-
Field Detail
-
AUDIO_TRACK_KIND
public static final java.lang.String AUDIO_TRACK_KIND
- See Also:
- Constant Field Values
-
VIDEO_TRACK_KIND
public static final java.lang.String VIDEO_TRACK_KIND
- See Also:
- Constant Field Values
-
-
Method Detail
-
id
public java.lang.String id()
-
kind
public java.lang.String kind()
-
enabled
public boolean enabled()
-
setEnabled
public boolean setEnabled(boolean enable)
-
state
public MediaStreamTrack.State state()
-
dispose
public void dispose()
-
-