Module webrtc.java

Class VideoTrack

    • Method Detail

      • dispose

        public void dispose()
        Description copied from class: dev.onvoid.webrtc.internal.DisposableNativeObject
        Invoke native object destructors and free native resources.
        Overrides:
        dispose in class MediaStreamTrack
      • addSink

        public void addSink​(VideoTrackSink sink)
        Adds a VideoSink to the track. A track can have any number of VideoSinks.
        Parameters:
        sink - The video sink to add.
      • removeSink

        public void removeSink​(VideoTrackSink sink)
        Removes a VideoSink from the track. If the VideoSink was not attached to the track, this is a no-op.