FMLiveSwitchSdpPacketTimeAttribute Class Reference

This gives the length of time in milliseconds represented by the media in a packet. More...

Instance Methods

(NSString *) - getAttributeValue
 Gets the internal value of the attribute. More...
 
(instancetype) - initWithPacketTime:
 Initializes a new instance of the FMLiveSwitchSdpPacketTimeAttribute class. More...
 
(int) - packetTime
 Gets the length of time in milliseconds represented by the media in a packet. 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

(FMLiveSwitchSdpPacketTimeAttribute *) + fromAttributeValue:
 Initializes a new instance of the FMLiveSwitchSdpPacketTimeAttribute class. More...
 
(FMLiveSwitchSdpPacketTimeAttribute *) + packetTimeAttributeWithPacketTime:
 Initializes a new instance of the FMLiveSwitchSdpPacketTimeAttribute 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 length of time in milliseconds represented by the media in a packet.

This is probably only meaningful for audio data, but may be used with other media types if it makes sense. It should not be necessary to know ptime to decode RTP or vat audio, and it is intended as a recommendation for the encoding/packetisation of audio. It is a media-level attribute, and it is not dependent on charset.

Method Documentation

◆ fromAttributeValue:

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

Initializes a new instance of the FMLiveSwitchSdpPacketTimeAttribute class.

Parameters
valueThe attribute value.

◆ getAttributeValue

- (NSString*) getAttributeValue

Gets the internal value of the attribute.

Implements FMLiveSwitchSdpAttribute.

◆ initWithPacketTime:

- (instancetype) initWithPacketTime: (int)  packetTime

Initializes a new instance of the FMLiveSwitchSdpPacketTimeAttribute class.

Parameters
packetTimeThe length of time in milliseconds represented by the media in a packet.

◆ packetTime

- (int) packetTime

Gets the length of time in milliseconds represented by the media in a packet.

◆ packetTimeAttributeWithPacketTime:

+ (FMLiveSwitchSdpPacketTimeAttribute*) packetTimeAttributeWithPacketTime: (int)  packetTime

Initializes a new instance of the FMLiveSwitchSdpPacketTimeAttribute class.

Parameters
packetTimeThe length of time in milliseconds represented by the media in a packet.