An audio format. More...
Instance Methods | |
(int) | - channelCount |
Gets the channel count. More... | |
(FMLiveSwitchAudioFormat *) | - clone |
Clones this instance. More... | |
(FMLiveSwitchAudioConfig *) | - config |
Gets the clock rate and channel count as a configuration. More... | |
(FMLiveSwitchAudioFormat *) | - createInstance |
Creates a new instance. More... | |
(FMLiveSwitchFormatInfo *) | - info |
Gets this format as an info object. More... | |
(instancetype) | - init |
Initializes a new instance of the FMLiveSwitchAudioFormat class. More... | |
(instancetype) | - initWithName:clockRate:channelCount: |
Initializes a new instance of the FMLiveSwitchAudioFormat class. More... | |
(instancetype) | - initWithName:config: |
Initializes a new instance of the FMLiveSwitchAudioFormat class. More... | |
(bool) | - isAac |
Gets a value indicating whether this format is AAC. More... | |
(bool) | - isCompatibleWithFormat: |
Determines whether the specified format is compatible. More... | |
(bool) | - isCompressed |
Gets whether this is a compressed format. More... | |
(bool) | - isDtmf |
Gets a value indicating whether this format is DTMF. More... | |
(bool) | - isEquivalentWithFormat:ignoreIsPacketized: |
Determines whether the specified format is equivalent. More... | |
(bool) | - isG722 |
Gets a value indicating whether this format is G.722. More... | |
(bool) | - isL16 |
Gets a value indicating whether this format is L16. More... | |
(bool) | - isOpus |
Gets a value indicating whether this format is Opus. More... | |
(bool) | - isPcm |
Gets a value indicating whether this format is PCM. More... | |
(bool) | - isPcma |
Gets a value indicating whether this format is PCMA. More... | |
(bool) | - isPcmu |
Gets a value indicating whether this format is PCMU. More... | |
(bool) | - littleEndian |
Gets whether the format uses little endian byte order. More... | |
(NSString *) | - parameters |
Gets the parameters. More... | |
(void) | - setChannelCount: |
Sets the channel count. More... | |
(void) | - setLittleEndian: |
Sets whether the format uses little endian byte order. More... | |
(NSString *) | - toJson |
Serializes this instance to JSON. More... | |
Instance Methods inherited from FMLiveSwitchMediaFormat | |
(NSString *) | - description |
Returns a string that represents this instance. More... | |
(NSString *) | - fullName |
Gets the full name, including clock rate and encoding parameters. More... | |
(NSString *) | - getMaxLevelWithLevel1:level2: |
Gets the maximum level. More... | |
(NSString *) | - getMinLevelWithLevel1:level2: |
Gets the minimum level. More... | |
(instancetype) | - initWithName:clockRate: |
Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More... | |
(instancetype) | - initWithName:clockRate:packetizationMode: |
Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More... | |
(instancetype) | - initWithName:clockRate:profile:level: |
Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More... | |
(instancetype) | - initWithName:clockRate:profile:level:packetizationMode: |
Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More... | |
(instancetype) | - initWithName:clockRate:profile:level:packetizationMode:tier: |
Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More... | |
(bool) | - isCompatibleWithFormat: |
Determines whether the specified format is compatible. More... | |
(bool) | - isEncrypted |
Gets a value indicating that the data is encrypted. More... | |
(bool) | - isEquivalentWithFormat: |
Determines whether the specified format is equivalent. More... | |
(bool) | - isEquivalentWithFormat:ignoreIsPacketized: |
Determines whether the specified format is equivalent. More... | |
(bool) | - isFixedBitrate |
Gets a value indicating whether a format only supports fixed bitrate. More... | |
(bool) | - isInjected |
Gets a value indicating that the data is injected into the primary media stream (e.g. More... | |
(bool) | - isLevelCompatibleWithLevel: |
Gets whether a level is compatible. More... | |
(bool) | - isPacketized |
Gets a value indicating whether the data is packetized. More... | |
(bool) | - isProfileCompatibleWithProfile: |
Gets whether a profile is compatible. More... | |
(NSString *) | - level |
Gets the level. More... | |
(bool) | - levelIsStrict |
Gets a value indicating whether the level is strict. More... | |
(int) | - maxBitrate |
Gets the maximum bitrate supported by this format, in kbps. More... | |
(int) | - minBitrate |
Gets the minimum bitrate supported by this format, in kbps. More... | |
(NSString *) | - name |
Gets the name. More... | |
(NSString *) | - packetizationMode |
Gets the packetization mode. More... | |
(NSString *) | - profile |
Gets the profile. More... | |
(void) | - setClockRate: |
Sets the clock rate. More... | |
(void) | - setIsEncrypted: |
Sets a value indicating that the data is encrypted. More... | |
(void) | - setIsFixedBitrate: |
Sets a value indicating whether a format only supports fixed bitrate. More... | |
(void) | - setIsInjected: |
Sets a value indicating that the data is injected into the primary media stream (e.g. More... | |
(void) | - setIsPacketized: |
Sets a value indicating whether the data is packetized. More... | |
(void) | - setLevel: |
Sets the level. More... | |
(void) | - setLevelIsStrict: |
Sets a value indicating whether the level is strict. More... | |
(void) | - setName: |
Sets the name. More... | |
(void) | - setPacketizationMode: |
Sets the packetization mode. More... | |
(void) | - setProfile: |
Sets the profile. More... | |
(void) | - setStaticPayloadType: |
Sets the static payload type, if this format has a static payload type registered with IANA. More... | |
(void) | - setTier: |
Sets the tier. More... | |
(int) | - staticPayloadType |
Gets the static payload type, if this format has a static payload type registered with IANA. More... | |
(NSString *) | - tier |
Gets the tier. More... | |
(void) | - updateLevelIsStrictToCompatibleWithFormat: |
Updates the level-is-strict flag to a compatible value. More... | |
(void) | - updateLevelToCompatibleWithFormat: |
Updates the level to a compatible value. More... | |
(void) | - updateProfileToCompatibleWithFormat: |
Updates the profile to a compatible value. More... | |
(void) | - updateTierToCompatibleWithFormat: |
Updates the tier to a compatible value. More... | |
Class Methods | |
(NSString *) | + aacName |
Gets the name of the AAC audio format ("aac"). More... | |
(FMLiveSwitchAudioFormat *) | + audioFormat |
Initializes a new instance of the FMLiveSwitchAudioFormat class. More... | |
(FMLiveSwitchAudioFormat *) | + audioFormatWithName:clockRate:channelCount: |
Initializes a new instance of the FMLiveSwitchAudioFormat class. More... | |
(FMLiveSwitchAudioFormat *) | + audioFormatWithName:config: |
Initializes a new instance of the FMLiveSwitchAudioFormat class. More... | |
(NSString *) | + dtmfName |
Gets the name of the DTMF audio format ("telephone-event"). More... | |
(FMLiveSwitchAudioFormat *) | + fromFormatInfo: |
Transforms a FormatInfo into an AudioFormat. More... | |
(FMLiveSwitchAudioFormat *) | + fromJsonWithAudioFormatJson: |
Deserializes an instance from JSON. More... | |
(NSString *) | + g722Name |
Gets the name of the G.722 audio format ("G722"). More... | |
(NSString *) | + l16Name |
Gets the name of the Linear PCM 16-bit audio (PCM Uncompressed). More... | |
(NSString *) | + opusName |
Gets the name of the Opus audio format ("opus"). More... | |
(NSString *) | + pcmaName |
Gets the name of the PCMA audio format ("PCMA"). More... | |
(NSString *) | + pcmName |
Gets the name of the PCM audio format ("PCM"). More... | |
(NSString *) | + pcmuName |
Gets the name of the PCMU audio format ("PCMU"). More... | |
(NSString *) | + toJsonWithAudioFormat: |
Serializes an instance to JSON. More... | |
Class Methods inherited from FMLiveSwitchMediaFormat | |
(FMLiveSwitchMediaFormat *) | + mediaFormat |
Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More... | |
(FMLiveSwitchMediaFormat *) | + mediaFormatWithName:clockRate: |
Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More... | |
(FMLiveSwitchMediaFormat *) | + mediaFormatWithName:clockRate:packetizationMode: |
Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More... | |
(FMLiveSwitchMediaFormat *) | + mediaFormatWithName:clockRate:profile:level: |
Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More... | |
(FMLiveSwitchMediaFormat *) | + mediaFormatWithName:clockRate:profile:level:packetizationMode: |
Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More... | |
(FMLiveSwitchMediaFormat *) | + mediaFormatWithName:clockRate:profile:level:packetizationMode:tier: |
Initializes a new instance of the FMLiveSwitchMediaFormat`1 class. More... | |
(NSString *) | + redName |
Gets the name of the RED media format. More... | |
(NSString *) | + ulpFecName |
Gets the name of the ULPFEC media format. More... | |
Additional Inherited Members | |
Protected Attributes inherited from FMLiveSwitchMediaFormat | |
__pad0__: NSObject- (int) clockRate | |
An audio format.
+ (NSString*) aacName |
Gets the name of the AAC audio format ("aac").
+ (FMLiveSwitchAudioFormat*) audioFormat |
Initializes a new instance of the FMLiveSwitchAudioFormat class.
+ (FMLiveSwitchAudioFormat*) audioFormatWithName: | (NSString *) | name | |
clockRate: | (int) | clockRate | |
channelCount: | (int) | channelCount | |
Initializes a new instance of the FMLiveSwitchAudioFormat class.
name | The name. |
clockRate | The clock rate. |
channelCount | The channel count. |
+ (FMLiveSwitchAudioFormat*) audioFormatWithName: | (NSString *) | name | |
config: | (FMLiveSwitchAudioConfig *) | config | |
Initializes a new instance of the FMLiveSwitchAudioFormat class.
name | The name. |
config | The configuration. |
- (int) channelCount |
Gets the channel count.
- (FMLiveSwitchAudioFormat*) clone |
Clones this instance.
Implements FMLiveSwitchMediaFormat.
- (FMLiveSwitchAudioConfig*) config |
Gets the clock rate and channel count as a configuration.
- (FMLiveSwitchAudioFormat*) createInstance |
Creates a new instance.
Implements FMLiveSwitchMediaFormat.
Implemented in FMLiveSwitchPcmuFormat, FMLiveSwitchPcmaFormat, FMLiveSwitchOpusFormat, and FMLiveSwitchG722Format.
+ (NSString*) dtmfName |
Gets the name of the DTMF audio format ("telephone-event").
+ (FMLiveSwitchAudioFormat*) fromFormatInfo: | (FMLiveSwitchFormatInfo *) | info |
Transforms a FormatInfo into an AudioFormat.
info | The format info. |
+ (FMLiveSwitchAudioFormat*) fromJsonWithAudioFormatJson: | (NSString *) | audioFormatJson |
Deserializes an instance from JSON.
audioFormatJson | The audio format JSON. |
+ (NSString*) g722Name |
Gets the name of the G.722 audio format ("G722").
- (FMLiveSwitchFormatInfo*) info |
Gets this format as an info object.
Implements FMLiveSwitchMediaFormat.
- (instancetype) init |
Initializes a new instance of the FMLiveSwitchAudioFormat class.
Implements FMLiveSwitchMediaFormat.
Implemented in FMLiveSwitchPcmuFormat, FMLiveSwitchPcmaFormat, FMLiveSwitchOpusFormat, FMLiveSwitchL16Format, FMLiveSwitchG722Format, and FMLiveSwitchDtmfFormat.
- (instancetype) initWithName: | (NSString *) | name | |
clockRate: | (int) | clockRate | |
channelCount: | (int) | channelCount | |
Initializes a new instance of the FMLiveSwitchAudioFormat class.
name | The name. |
clockRate | The clock rate. |
channelCount | The channel count. |
Implemented in FMLiveSwitchG711Format.
- (instancetype) initWithName: | (NSString *) | name | |
config: | (FMLiveSwitchAudioConfig *) | config | |
Initializes a new instance of the FMLiveSwitchAudioFormat class.
name | The name. |
config | The configuration. |
- (bool) isAac |
Gets a value indicating whether this format is AAC.
- (bool) isCompatibleWithFormat: | (FMLiveSwitchAudioFormat *) | format |
Determines whether the specified format is compatible.
format | The format. |
- (bool) isCompressed |
Gets whether this is a compressed format.
Implements FMLiveSwitchMediaFormat.
- (bool) isDtmf |
Gets a value indicating whether this format is DTMF.
- (bool) isEquivalentWithFormat: | (FMLiveSwitchAudioFormat *) | format | |
ignoreIsPacketized: | (bool) | ignoreIsPacketized | |
Determines whether the specified format is equivalent.
format | The format. |
ignoreIsPacketized | Whether to ignore if the two formats differ in whether they are packetized. |
- (bool) isG722 |
Gets a value indicating whether this format is G.722.
- (bool) isL16 |
Gets a value indicating whether this format is L16.
- (bool) isOpus |
Gets a value indicating whether this format is Opus.
- (bool) isPcm |
Gets a value indicating whether this format is PCM.
- (bool) isPcma |
Gets a value indicating whether this format is PCMA.
- (bool) isPcmu |
Gets a value indicating whether this format is PCMU.
+ (NSString*) l16Name |
Gets the name of the Linear PCM 16-bit audio (PCM Uncompressed).
- (bool) littleEndian |
Gets whether the format uses little endian byte order.
+ (NSString*) opusName |
Gets the name of the Opus audio format ("opus").
- (NSString*) parameters |
Gets the parameters.
Implements FMLiveSwitchMediaFormat.
+ (NSString*) pcmaName |
Gets the name of the PCMA audio format ("PCMA").
+ (NSString*) pcmName |
Gets the name of the PCM audio format ("PCM").
+ (NSString*) pcmuName |
Gets the name of the PCMU audio format ("PCMU").
- (void) setChannelCount: | (int) | value |
Sets the channel count.
- (void) setLittleEndian: | (bool) | value |
Sets whether the format uses little endian byte order.
- (NSString*) toJson |
Serializes this instance to JSON.
+ (NSString*) toJsonWithAudioFormat: | (FMLiveSwitchAudioFormat *) | audioFormat |
Serializes an instance to JSON.
audioFormat | The audio format. |