public interface PayloadType
Modifier and Type | Method and Description |
---|---|
PayloadType |
clone()
Instantiates a new payload type with values from source.
|
int |
enable(boolean enabled)
Enable/disable a payload type.
|
boolean |
enabled()
Check whether a palyoad type is enabled.
|
int |
getChannels()
Get the number of channels.
|
int |
getClockRate()
Get the clock rate of a payload type.
|
java.lang.String |
getDescription()
Return a string describing a payload type.
|
java.lang.String |
getEncoderDescription()
Get a description of the encoder used to provide a payload type.
|
java.lang.String |
getMimeType()
Get the mime type.
|
long |
getNativePointer()
Gets the native pointer used by this class to make native method calls.
|
int |
getNormalBitrate()
Get the normal bitrate in bits/s.
|
int |
getNumber()
Returns the payload type number assigned for this codec.
|
java.lang.String |
getRecvFmtp()
Get the format parameters for incoming streams.
|
java.lang.String |
getSendFmtp()
Get the format parameters for outgoing streams.
|
int |
getType()
Get the type of a payload type.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
boolean |
isUsable()
Check whether the payload is usable according the bandwidth targets set in the
core. |
boolean |
isVbr()
Tells whether the specified payload type represents a variable bitrate codec.
|
void |
setNormalBitrate(int bitrate)
Change the normal bitrate of a payload type.
|
void |
setNumber(int number)
Force a number for a payload type.
|
void |
setRecvFmtp(java.lang.String recvFmtp)
Set the format parameters for incoming streams.
|
void |
setSendFmtp(java.lang.String sendFmtp)
Set the format parameters for outgoing streams.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
java.lang.String |
toString() |
int getChannels()
int getClockRate()
@NonNull java.lang.String getDescription()
@Nullable java.lang.String getEncoderDescription()
boolean isUsable()
boolean isVbr()
@NonNull java.lang.String getMimeType()
int getNormalBitrate()
void setNormalBitrate(int bitrate)
bitrate
- The new bitrate in kbits/s. int getNumber()
void setNumber(int number)
Core
does payload type number assignment automatically. Thisnumber
- The number to assign to the payload type. @Nullable java.lang.String getRecvFmtp()
void setRecvFmtp(@Nullable java.lang.String recvFmtp)
recvFmtp
- The new format parameters as string. The string will be copied.@Nullable java.lang.String getSendFmtp()
void setSendFmtp(@Nullable java.lang.String sendFmtp)
sendFmtp
- The new format parameters as string. The string will be copied.int getType()
@NonNull PayloadType clone()
PayloadType
object. int enable(boolean enabled)
enabled
- Set true for enabling and false for disabling. boolean enabled()
void setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString
in class java.lang.Object