public class AudioCodecConfiguration
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AudioCodecConfiguration.DefaultConfigurationType |
Constructor and Description |
---|
AudioCodecConfiguration(AudioCodecConfiguration.DefaultConfigurationType type)
Constructor of AudioCodecConfiguration class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getOpusDtx()
Getter method of DTX.
|
boolean |
getOpusFec()
Getter method of maxAverageBitRate.
|
java.lang.String |
getOpusFmtpLine()
This method will return the opus fmtp line parameters which will be in the fmtp line of SDP.
|
int |
getOpusMaxAverageBitRate()
Getter method of maxAverageBitRate.
|
int |
getOpusMaxPlaybackRate()
Getter method of maxPlaybackRate.
|
int |
getPtime()
Getter method of ptime.
|
void |
setOpusDtx(boolean dtxEnable)
Sets DTX value which will enable or disable Discontinuous Transmission feature of Opus codec.
|
void |
setOpusFec(boolean fecEnable)
Sets FEC value which will enable or disable ForwardErrorCorrection feature of Opus codec.
|
void |
setOpusMaxAverageBitRate(int maxAverageBitRate)
Sets the MaxAverageBitRate.
|
void |
setOpusMaxPlaybackRate(int maxPlaybackRate)
Sets the MaxPlaybackRate.
|
void |
setPtime(int ptime)
Sets the Ptime value which will change the ptime configuration of Opus codec.
|
public AudioCodecConfiguration(AudioCodecConfiguration.DefaultConfigurationType type)
public java.lang.String getOpusFmtpLine()
public void setOpusMaxAverageBitRate(int maxAverageBitRate)
MobileSDK default maxAverageBitRate=20000
6000 <= MaxAverageBitRate <= 510000 In case this value set as -1 WebRTC defaults will be use.
maxAverageBitRate
- MaxAverageBitRate value as an integerpublic void setPtime(int ptime)
MobileSDK default ptime=60
3 <= MaxAverageBitRate <= 120 and it should be multiple of an Opus frame size rounded up to the next full integer value In case this value set as -1 WebRTC defaults will be use.
ptime
- Ptime value as an integerpublic void setOpusFec(boolean fecEnable)
MobileSDK default FEC is enabled
fecEnable
- fec value as a boolean.public void setOpusDtx(boolean dtxEnable)
If application set dtxEnable parameter as 'true' DTX will be enable, if application set it as 'false' DTX will be disable.
MobileSDK default DTX is enabled
dtxEnable
- dtx value as a booleanpublic void setOpusMaxPlaybackRate(int maxPlaybackRate)
MobileSDK default MaxPlaybackRate=16000
8000 <= maxPlaybackRate <= 48000 In case this value set as -1 WebRTC defaults will be use.
maxPlaybackRate
- MaxPlaybackRate value as an integerpublic int getOpusMaxAverageBitRate()
public int getOpusMaxPlaybackRate()
public boolean getOpusFec()
public boolean getOpusDtx()
public int getPtime()