Class OpusCodec

java.lang.Object
com.twilio.video.AudioCodec
com.twilio.video.OpusCodec

public class OpusCodec extends AudioCodec
Lossy audio coding format.
See Also:
  • Field Details

  • Constructor Details

    • OpusCodec

      public OpusCodec()
    • OpusCodec

      public OpusCodec(boolean useDtx)
      A constructor to initialize the OpusCodec with non-default attributes.
      Parameters:
      useDtx - Discontinuous transmission reduces the bitrate for certain input signals, like periods of silence [RFC-7587 3.1.3](https://tools.ietf.org/html/rfc7587#section-3.1.3). The default is false. This setting applies to sender and receiver transmission.
  • Method Details

    • isDtxEnabled

      public boolean isDtxEnabled()
      Reports whether DTX is enabled or not.
      Returns:
      true if DTX is enabled.