Format information.
More...
◆ channelCount
Gets the channel count if available.
Unused for video codecs.
◆ clockRate
◆ codecName
◆ description
Returns a string that represents this instance.
◆ formatInfo
Creates a new instance of a FormatInfo.
◆ formatInfoWithAudioFormat:
Creates an instance of a FormatInfo from an AudioFormat.
- Parameters
-
audioFormat | The audio format. |
◆ formatInfoWithCodecName:clockRate:
Creates a new instance of a FormatInfo.
- Parameters
-
codecName | The codec name. |
clockRate | The clock rate. |
◆ formatInfoWithName:clockRate:channelCount:
Creates a new instance of a FormatInfo.
- Parameters
-
name | The name. |
clockRate | The clock rate. |
channelCount | The channel count. |
◆ formatInfoWithVideoFormat:
Creates an instance of a FormatInfo from a VideoFormat.
- Parameters
-
videoFormat | The video format. |
◆ fromJsonArrayWithFormatInfosJson:
+ (NSMutableArray*) fromJsonArrayWithFormatInfosJson: |
|
(NSString *) |
formatInfosJson |
|
Derializes an array of format infos from JSON.
- Parameters
-
formatInfosJson | The format infos in JSON format. |
◆ fromJsonWithFormatInfoJson:
Deserializes Json to a FormatInfo.
- Parameters
-
formatInfoJson | The serialized Json. |
- Returns
- The deserialized FormatInfo.
◆ fromSdpMediaDescription:
Converts the RTP map attributes in an SDP media description to an array of FormatInfo objects.
- Parameters
-
sdpMediaDescription | The SDP media description. |
- Returns
- An array of FormatInfo objects.
◆ init
Creates a new instance of a FormatInfo.
◆ initWithAudioFormat:
Creates an instance of a FormatInfo from an AudioFormat.
- Parameters
-
audioFormat | The audio format. |
◆ initWithCodecName:clockRate:
- (instancetype) initWithCodecName: |
|
(NSString *) |
codecName |
clockRate: |
|
(int) |
clockRate |
|
|
| |
Creates a new instance of a FormatInfo.
- Parameters
-
codecName | The codec name. |
clockRate | The clock rate. |
◆ initWithName:clockRate:channelCount:
- (instancetype) initWithName: |
|
(NSString *) |
name |
clockRate: |
|
(int) |
clockRate |
channelCount: |
|
(int) |
channelCount |
|
|
| |
Creates a new instance of a FormatInfo.
- Parameters
-
name | The name. |
clockRate | The clock rate. |
channelCount | The channel count. |
◆ initWithVideoFormat:
Creates an instance of a FormatInfo from a VideoFormat.
- Parameters
-
videoFormat | The video format. |
◆ isEquivalentWithInstance:
Checks if an instance is equivalent to this one.
- Parameters
-
◆ isEquivalentWithName:clockRate:channelCount:
- (bool) isEquivalentWithName: |
|
(NSString *) |
name |
clockRate: |
|
(int) |
clockRate |
channelCount: |
|
(int) |
channelCount |
|
|
| |
Tests for equivalency.
- Parameters
-
channelCount | The channel count. |
clockRate | The clock rate. |
name | The format name. |
- Returns
true
if equivalent; otherwise, false
.
◆ name
◆ setChannelCount:
- (void) setChannelCount: |
|
(int) |
value |
|
Sets the channel count if available.
Unused for video codecs.
◆ setClockRate:
- (void) setClockRate: |
|
(int) |
value |
|
◆ setCodecName:
- (void) setCodecName: |
|
(NSString *) |
value |
|
◆ setName:
◆ toJson
Serializes this instance to Json.
◆ toJsonArrayWithFormatInfos:
+ (NSString*) toJsonArrayWithFormatInfos: |
|
(NSMutableArray *) |
formatInfos |
|
Serializes an array of format infos to JSON.
- Parameters
-
formatInfos | The format infos. |
◆ toJsonWithFormatInfo:
Serializes an instance to Json.
- Parameters
-
formatInfo | The instance to serialize. |
- Returns
- Serialized Json.