Package tvi.webrtc

Class MediaStream


  • public class MediaStream
    extends java.lang.Object
    Java wrapper for a C++ MediaStreamInterface.
    • 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
    • Constructor Detail

      • MediaStream

        public MediaStream​(long nativeStream)
    • 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 class java.lang.Object