Package tvi.webrtc
Class MediaStream
- java.lang.Object
-
- tvi.webrtc.MediaStream
-
public class MediaStream extends java.lang.Object
Java wrapper for a C++ MediaStreamInterface.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<AudioTrack>
audioTracks
java.util.List<VideoTrack>
preservedVideoTracks
java.util.List<VideoTrack>
videoTracks
-
Constructor Summary
Constructors Constructor Description MediaStream(long nativeStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addPreservedTrack(VideoTrack track)
boolean
addTrack(AudioTrack track)
boolean
addTrack(VideoTrack track)
void
dispose()
java.lang.String
getId()
boolean
removeTrack(AudioTrack track)
boolean
removeTrack(VideoTrack track)
java.lang.String
toString()
-
-
-
Field Detail
-
audioTracks
public final java.util.List<AudioTrack> audioTracks
-
videoTracks
public final java.util.List<VideoTrack> videoTracks
-
preservedVideoTracks
public final java.util.List<VideoTrack> preservedVideoTracks
-
-
Method Detail
-
addTrack
public boolean addTrack(AudioTrack track)
-
addTrack
public boolean addTrack(VideoTrack track)
-
addPreservedTrack
public boolean addPreservedTrack(VideoTrack track)
-
removeTrack
public boolean removeTrack(AudioTrack track)
-
removeTrack
public boolean removeTrack(VideoTrack track)
-
dispose
public void dispose()
-
getId
public java.lang.String getId()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-