FMLiveSwitchSdpMaxPacketTimeAttribute 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 *) - getAttributeValue
 Gets the internal value of the attribute. More...
 
(instancetype) - initWithMaxPacketTime:
 Initializes a new instance of the FMLiveSwitchSdpMaxPacketTimeAttribute class. More...
 
(int) - maxPacketTime
 Gets the maximum amount of media that can be encapsulated, in each packet, expressed as time in milliseconds. 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

(FMLiveSwitchSdpMaxPacketTimeAttribute *) + fromAttributeValue:
 Initializes a new instance of the FMLiveSwitchSdpMaxPacketTimeAttribute class. More...
 
(FMLiveSwitchSdpMaxPacketTimeAttribute *) + maxPacketTimeAttributeWithMaxPacketTime:
 Initializes a new instance of the FMLiveSwitchSdpMaxPacketTimeAttribute 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

◆ fromAttributeValue:

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

Initializes a new instance of the FMLiveSwitchSdpMaxPacketTimeAttribute class.

Parameters
valueThe attribute value.

◆ getAttributeValue

- (NSString*) getAttributeValue

Gets the internal value of the attribute.

Implements FMLiveSwitchSdpAttribute.

◆ initWithMaxPacketTime:

- (instancetype) initWithMaxPacketTime: (int)  maxPacketTime

Initializes a new instance of the FMLiveSwitchSdpMaxPacketTimeAttribute class.

Parameters
maxPacketTimeThe maximum amount of media that can be encapsulated, in each packet, expressed as time in milliseconds.

◆ maxPacketTime

- (int) maxPacketTime

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

◆ maxPacketTimeAttributeWithMaxPacketTime:

+ (FMLiveSwitchSdpMaxPacketTimeAttribute*) maxPacketTimeAttributeWithMaxPacketTime: (int)  maxPacketTime

Initializes a new instance of the FMLiveSwitchSdpMaxPacketTimeAttribute class.

Parameters
maxPacketTimeThe maximum amount of media that can be encapsulated, in each packet, expressed as time in milliseconds.