Module webrtc.java

Class AudioTrack

    • 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​(AudioTrackSink sink)
        Adds an AudioSink to the track. A track can have any number of AudioSinks.
        Parameters:
        sink - The audio sink that will receive audio data from the track.
      • removeSink

        public void removeSink​(AudioTrackSink sink)
        Removes an AudioSink from the track. If the AudioSink was not attached to the track, this is a no-op.
      • getSignalLevel

        public int getSignalLevel()
        Get the signal level from the audio track.
        Returns:
        The signal level.