Package org.webrtc

Class AudioTrack


public class AudioTrack extends MediaStreamTrack
Java wrapper for a C++ AudioTrackInterface
  • Constructor Details

    • AudioTrack

      public AudioTrack(long nativeTrack)
  • Method Details

    • setVolume

      public void setVolume(double volume)
      Sets the volume for the underlying MediaSource. Volume is a gain value in the range 0 to 10.
    • getNativeAudioTrack

      long getNativeAudioTrack()
      Returns a pointer to webrtc::AudioTrackInterface.
    • nativeSetVolume

      private static void nativeSetVolume(long track, double volume)