<FMLiveSwitchIRtpHeaderExtension> Protocol Reference

The interface that all rtp header extensions must implement. More...

Instance Methods

(void) - fillBuffer:offset:
 Serialize the header extension to a buffer. More...
 
(NSMutableData *) - id
 Gets the header extension ID. More...
 
(int) - length
 Gets the length of the header extension in 32-bit words. More...
 

Detailed Description

The interface that all rtp header extensions must implement.

Method Documentation

◆ fillBuffer:offset:

- (void) fillBuffer: (FMLiveSwitchDataBuffer *)  buffer
offset: (int)  offset 

Serialize the header extension to a buffer.

Parameters
bufferThe buffer.
offsetThe offset to start writing at.

Reimplemented in FMLiveSwitchRtpRawHeaderExtension, and FMLiveSwitchRtpHeaderExtension.

◆ id

- (NSMutableData*) id

Gets the header extension ID.

Reimplemented in FMLiveSwitchRtpRawHeaderExtension, and FMLiveSwitchRtpHeaderExtension.

◆ length

- (int) length

Gets the length of the header extension in 32-bit words.

Reimplemented in FMLiveSwitchRtpRawHeaderExtension, and FMLiveSwitchRtpHeaderExtension.