FMLiveSwitchSdpMedia Class Reference

An SDP media element. More...

Instance Methods

(NSString *) - description
 Converts this instance to a string. More...
 
(NSString *) - formatDescription
 Gets the format description. More...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchSdpMedia class. More...
 
(instancetype) - initWithMediaType:transportPort:transportProtocol:
 Initializes a new instance of the FMLiveSwitchSdpMedia class. More...
 
(instancetype) - initWithMediaType:transportPort:transportProtocol:formatDescription:
 Initializes a new instance of the FMLiveSwitchSdpMedia class. More...
 
(NSString *) - mediaType
 Gets the media type. More...
 
(short) - numberOfPorts
 Gets the number of ports. More...
 
(void) - setFormatDescription:
 Sets the format description. More...
 
(void) - setMediaType:
 Sets the media type. More...
 
(void) - setNumberOfPorts:
 Sets the number of ports. More...
 
(void) - setTransportPort:
 Sets the transport port. More...
 
(void) - setTransportProtocol:
 Sets the transport protocol. More...
 
(int) - transportPort
 Gets the transport port. More...
 
(NSString *) - transportProtocol
 Gets the transport protocol. More...
 

Class Methods

(FMLiveSwitchSdpMedia *) + media
 Initializes a new instance of the FMLiveSwitchSdpMedia class. More...
 
(FMLiveSwitchSdpMedia *) + mediaWithMediaType:transportPort:transportProtocol:
 Initializes a new instance of the FMLiveSwitchSdpMedia class. More...
 
(FMLiveSwitchSdpMedia *) + mediaWithMediaType:transportPort:transportProtocol:formatDescription:
 Initializes a new instance of the FMLiveSwitchSdpMedia class. More...
 
(FMLiveSwitchSdpMedia *) + parseWithS:
 Creates an FMLiveSwitchSdpMedia instance from a string. More...
 

Detailed Description

An SDP media element.

Method Documentation

◆ description

- (NSString*) description

Converts this instance to a string.

◆ formatDescription

- (NSString*) formatDescription

Gets the format description.

◆ init

- (instancetype) init

Initializes a new instance of the FMLiveSwitchSdpMedia class.

◆ initWithMediaType:transportPort:transportProtocol:

- (instancetype) initWithMediaType: (NSString *)  mediaType
transportPort: (int)  transportPort
transportProtocol: (NSString *)  transportProtocol 

Initializes a new instance of the FMLiveSwitchSdpMedia class.

Parameters
mediaTypeThe media type. See mediaType for possible values.
transportPortThe transport port.
transportProtocolThe transport protocol.

◆ initWithMediaType:transportPort:transportProtocol:formatDescription:

- (instancetype) initWithMediaType: (NSString *)  mediaType
transportPort: (int)  transportPort
transportProtocol: (NSString *)  transportProtocol
formatDescription: (NSString *)  formatDescription 

Initializes a new instance of the FMLiveSwitchSdpMedia class.

Parameters
mediaTypeThe media type. See mediaType for possible values.
transportPortThe transport port.
transportProtocolThe transport protocol.
formatDescriptionThe format description.

◆ media

Initializes a new instance of the FMLiveSwitchSdpMedia class.

◆ mediaType

- (NSString*) mediaType

Gets the media type.

See mediaType for possible values.

◆ mediaWithMediaType:transportPort:transportProtocol:

+ (FMLiveSwitchSdpMedia*) mediaWithMediaType: (NSString *)  mediaType
transportPort: (int)  transportPort
transportProtocol: (NSString *)  transportProtocol 

Initializes a new instance of the FMLiveSwitchSdpMedia class.

Parameters
mediaTypeThe media type. See mediaType for possible values.
transportPortThe transport port.
transportProtocolThe transport protocol.

◆ mediaWithMediaType:transportPort:transportProtocol:formatDescription:

+ (FMLiveSwitchSdpMedia*) mediaWithMediaType: (NSString *)  mediaType
transportPort: (int)  transportPort
transportProtocol: (NSString *)  transportProtocol
formatDescription: (NSString *)  formatDescription 

Initializes a new instance of the FMLiveSwitchSdpMedia class.

Parameters
mediaTypeThe media type. See mediaType for possible values.
transportPortThe transport port.
transportProtocolThe transport protocol.
formatDescriptionThe format description.

◆ numberOfPorts

- (short) numberOfPorts

Gets the number of ports.

◆ parseWithS:

+ (FMLiveSwitchSdpMedia*) parseWithS: (NSString *)  s

Creates an FMLiveSwitchSdpMedia instance from a string.

Parameters
sThe string to parse.

◆ setFormatDescription:

- (void) setFormatDescription: (NSString *)  value

Sets the format description.

◆ setMediaType:

- (void) setMediaType: (NSString *)  value

Sets the media type.

See mediaType for possible values.

◆ setNumberOfPorts:

- (void) setNumberOfPorts: (short)  value

Sets the number of ports.

◆ setTransportPort:

- (void) setTransportPort: (int)  value

Sets the transport port.

◆ setTransportProtocol:

- (void) setTransportProtocol: (NSString *)  value

Sets the transport protocol.

◆ transportPort

- (int) transportPort

Gets the transport port.

◆ transportProtocol

- (NSString*) transportProtocol

Gets the transport protocol.