FMLiveSwitchSdpCryptoAttribute Class Reference

This gives the maximum amount of media that can be encapsulated in each packet, expressed as time in milliseconds. More...

Instance Methods

(NSString *) - cryptoSuite
 Gets the crypto suite. More...
 
(NSString *) - getAttributeValue
 Gets the internal value of the attribute. More...
 
(FMLiveSwitchDataBuffer *) - getKey
 Gets the key from the "inline" key parameter. More...
 
(FMLiveSwitchDataBuffer *) - getSalt
 Gets the salt from the "inline" key parameter. More...
 
(instancetype) - initWithTag:cryptoSuite:
 Initializes a new instance of the FMLiveSwitchSdpCryptoAttribute class. More...
 
(NSMutableDictionary< NSString *, NSString * > *) - keyParams
 Gets the key parameters. More...
 
(NSMutableArray< NSString * > *) - sessionParams
 Gets the session parameters. More...
 
(FMLiveSwitchSdpCryptoAttribute *) - setKeySaltWithKey:salt:
 Sets the key and salt for the "inline" key parameter. More...
 
(void) - setTag:
 Sets the tag. More...
 
(int) - tag
 Gets the tag. More...
 
- Instance Methods inherited from FMLiveSwitchSdpAttribute
(FMLiveSwitchSdpAttributeType) - attributeType
 Gets this Attribute's Type. More...
 
(NSString *) - description
 Converts this instance to a string. More...
 
(instancetype) - init
 
(FMLiveSwitchSdpAttributeCategory) - multiplexingCategory
 Gets the Multiplexing Category of this Attribute. More...
 
(void) - setAttributeType:
 Sets this Attribute's Type. More...
 
(void) - setMultiplexingCategory:
 Sets the Multiplexing Category of this Attribute. More...
 

Class Methods

(FMLiveSwitchSdpCryptoAttribute *) + cryptoAttributeWithTag:cryptoSuite:
 Initializes a new instance of the FMLiveSwitchSdpCryptoAttribute class. More...
 
(FMLiveSwitchSdpCryptoAttribute *) + fromAttributeValue:
 Initializes a new instance of the FMLiveSwitchSdpCryptoAttribute class. More...
 
- Class Methods inherited from FMLiveSwitchSdpAttribute
(FMLiveSwitchSdpAttribute *) + attribute
 
(FMLiveSwitchSdpAttribute *) + createAttributeWithName:value:
 Creates an attribute. More...
 
(NSString *) + getTypeNameWithType:
 Gets the name of the attribute type. More...
 
(bool) + isMediaLevelWithType:
 Determines whether the type applies to media streams. More...
 
(bool) + isSessionLevelWithType:
 Determines whether the type applies to sessions. More...
 
(FMLiveSwitchSdpAttribute *) + parseWithS:
 Creates an FMLiveSwitchSdpConnectionData instance from a string. More...
 

Detailed Description

This gives the maximum amount of media that can be encapsulated in each packet, expressed as time in milliseconds.

The time SHALL be calculated as the sum of the time the media present in the packet represents. For frame-based codecs, the time SHOULD be an integer multiple of the frame size. This attribute is probably only meaningful for audio data, but may be used with other media types if it makes sense. It is a media-level attribute, and it is not dependent on charset. Note that this attribute was introduced after RFC 2327, and non-updated implementations will ignore this attribute.

Method Documentation

◆ cryptoAttributeWithTag:cryptoSuite:

+ (FMLiveSwitchSdpCryptoAttribute*) cryptoAttributeWithTag: (int)  tag
cryptoSuite: (NSString *)  cryptoSuite 

Initializes a new instance of the FMLiveSwitchSdpCryptoAttribute class.

Parameters
tagThe tag.
cryptoSuiteThe crypto suite.

◆ cryptoSuite

- (NSString*) cryptoSuite

Gets the crypto suite.

See cryptoSuite for possible values.

◆ fromAttributeValue:

+ (FMLiveSwitchSdpCryptoAttribute*) fromAttributeValue: (NSString *)  value

Initializes a new instance of the FMLiveSwitchSdpCryptoAttribute class.

Parameters
valueThe attribute value.

◆ getAttributeValue

- (NSString*) getAttributeValue

Gets the internal value of the attribute.

Implements FMLiveSwitchSdpAttribute.

◆ getKey

Gets the key from the "inline" key parameter.

◆ getSalt

- (FMLiveSwitchDataBuffer*) getSalt

Gets the salt from the "inline" key parameter.

◆ initWithTag:cryptoSuite:

- (instancetype) initWithTag: (int)  tag
cryptoSuite: (NSString *)  cryptoSuite 

Initializes a new instance of the FMLiveSwitchSdpCryptoAttribute class.

Parameters
tagThe tag.
cryptoSuiteThe crypto suite.

◆ keyParams

- (NSMutableDictionary<NSString*,NSString*>*) keyParams

Gets the key parameters.

◆ sessionParams

- (NSMutableArray<NSString*>*) sessionParams

Gets the session parameters.

◆ setKeySaltWithKey:salt:

- (FMLiveSwitchSdpCryptoAttribute*) setKeySaltWithKey: (NSMutableData *)  key
salt: (NSMutableData *)  salt 

Sets the key and salt for the "inline" key parameter.

Parameters
keyThe key.
saltThe salt.

◆ setTag:

- (void) setTag: (int)  value

Sets the tag.

◆ tag

- (int) tag

Gets the tag.