A media frame. More...
Instance Methods | |
(void) | - addBuffers: |
Adds some buffers. More... | |
(TBuffer) | - buffer |
Gets the buffer. More... | |
(NSMutableArray *) | - buffers |
Gets the buffers. More... | |
(TFrame) | - clone |
Clones this instance. More... | |
(NSMutableArray *) | - contributingSources |
Gets the contributing sources. More... | |
(TFrame) | - createInstance |
Creates a new instance. More... | |
(TBufferCollection) | - createMediaBufferCollection |
Creates a media buffer collection. More... | |
(bool) | - discard |
Gets whether this frame should be discarded. More... | |
(int) | - footprint |
Gets the approximate footprint of this media frame by returning the sum of its media buffer footprints. More... | |
(TFrame) | - free |
Frees the buffers referenced by this instance. More... | |
(TBuffer) | - getBufferWithFormat: |
Gets the last buffer whose format is compatible with the specified format. More... | |
(TBuffer) | - getBufferWithFormat:sourceId: |
Gets the last buffer whose format is compatible with the specified format and whose source ID matches the specified source ID. More... | |
(TBuffer) | - getBufferWithFormatName: |
Gets the last buffer whose format name matches the specified format name. More... | |
(TBuffer) | - getBufferWithIsPacketized: |
Gets the last buffer whose format packetization flag matches the specified flag. More... | |
(TBuffer) | - getBufferWithIsPacketized:isEncrypted: |
Gets the last buffer whose format packetization and encryption flags matches the specified flags. More... | |
(bool) | - hasBufferWithFormat: |
Checks if a buffer exists with format equivalence. More... | |
(bool) | - hasBufferWithFormat:sourceId: |
Checks if a buffer exists with format equivalence and source ID. More... | |
(instancetype) | - init |
Initializes a new instance of the FMLiveSwitchMediaFrame`4 class. More... | |
(instancetype) | - initWithBuffer: |
Initializes a new instance of the FMLiveSwitchMediaFrame`4 class. More... | |
(instancetype) | - initWithBuffers: |
Initializes a new instance of the FMLiveSwitchMediaFrame`4 class. More... | |
(TFrame) | - keep |
Keeps the buffers referenced by this instance. More... | |
(TBuffer) | - lastBuffer |
Gets the most recent buffer. More... | |
(NSString *) | - mid |
Gets the MID. More... | |
(long long) | - networkSystemTimestamp |
Gets the network system timestamp. More... | |
(long long) | - ntpTimestampTicks |
Gets the NTP timestamp ticks matching FMLiveSwitchMediaFrame`4timestamp, set by RTP receivers for synchronization of inbound media streams. More... | |
(void) | - removeBuffer: |
Removes a buffer. More... | |
(void) | - removeBuffers |
Removes all buffers. More... | |
(void) | - removeBuffers: |
Removes some buffers. More... | |
(NSString *) | - repairedRtpStreamId |
Gets the repaired RTP stream identifier. More... | |
(int) | - rtpSequenceNumber |
Gets the RTP sequence number. More... | |
(NSString *) | - rtpStreamId |
Gets the RTP stream identifier. More... | |
(long long) | - rtpTimestamp |
Gets the RTP timestamp. More... | |
(long long) | - sequenceNumber |
Gets the sequence number. More... | |
(void) | - setBuffer: |
Sets the buffer. More... | |
(void) | - setBuffers: |
Sets the buffers. More... | |
(void) | - setContributingSources: |
Sets the contributing sources. More... | |
(void) | - setDiscard: |
Sets whether this frame should be discarded. More... | |
(void) | - setMid: |
Sets the MID. More... | |
(void) | - setNetworkSystemTimestamp: |
Sets the network system timestamp. More... | |
(void) | - setNtpTimestampTicks: |
Sets the NTP timestamp ticks matching FMLiveSwitchMediaFrame`4timestamp, set by RTP receivers for synchronization of inbound media streams. More... | |
(void) | - setRepairedRtpStreamId: |
Sets the repaired RTP stream identifier. More... | |
(void) | - setRtpSequenceNumber: |
Sets the RTP sequence number. More... | |
(void) | - setRtpStreamId: |
Sets the RTP stream identifier. More... | |
(void) | - setRtpTimestamp: |
Sets the RTP timestamp. More... | |
(void) | - setSequenceNumber: |
Sets the sequence number. More... | |
(void) | - setSynchronizationSource: |
Sets the synchronization source. More... | |
(void) | - setSynchronized: |
Sets whether this frame has a FMLiveSwitchMediaFrame`4systemTimestamp that is actively synchronized with other streams. More... | |
(void) | - setSystemTimestamp: |
Sets the system timestamp matching FMLiveSwitchMediaFrame`4timestamp but measured in system ticks. More... | |
(void) | - setTimestamp: |
Sets the timestamp, measured according to the last buffer format's clock rate. More... | |
(void) | - setTransportSystemTimestamp: |
Sets the transport system timestamp. More... | |
(long long) | - synchronizationSource |
Gets the synchronization source. More... | |
(bool) | - synchronized |
Gets whether this frame has a FMLiveSwitchMediaFrame`4systemTimestamp that is actively synchronized with other streams. More... | |
(long long) | - systemTimestamp |
Gets the system timestamp matching FMLiveSwitchMediaFrame`4timestamp but measured in system ticks. More... | |
(long long) | - timestamp |
Gets the timestamp, measured according to the last buffer format's clock rate. More... | |
(long long) | - transportSystemTimestamp |
Gets the transport system timestamp. More... | |
(void) | - updateTimestampWithBaseTimestamp:baseRtpTimestamp:inputClockRate:outputClockRate: |
Updates the timestamp to match resampling. More... | |
Class Methods | |
(long long) | + calculateSystemTimestampWithBaseSystemTimestamp:timestamp:clockRate:baseTimestamp: |
Calculates a system timestamp given a base system timestamp, the current timestamp, a clock rate, and a base timestamp. More... | |
(long long) | + calculateTimestampWithBaseSystemTimestamp:systemTimestamp:clockRate: |
Calculates a timestamp given a base system timestamp, the current system timestamp, and a clock rate. More... | |
(long long) | + calculateTimestampWithBaseSystemTimestamp:systemTimestamp:clockRate:baseTimestamp: |
Calculates a timestamp given a base system timestamp, the current system timestamp, a clock rate, and a base timestamp. More... | |
(FMLiveSwitchMediaFrame *) | + mediaFrame |
Initializes a new instance of the FMLiveSwitchMediaFrame`4 class. More... | |
(FMLiveSwitchMediaFrame *) | + mediaFrameWithBuffer: |
Initializes a new instance of the FMLiveSwitchMediaFrame`4 class. More... | |
(FMLiveSwitchMediaFrame *) | + mediaFrameWithBuffers: |
Initializes a new instance of the FMLiveSwitchMediaFrame`4 class. More... | |
Protected Attributes | |
__pad0__: FMLiveSwitchDynamic- (void) addBuffer:(TBuffer)buffer | |
A media frame.
- (void) addBuffers: | (NSMutableArray *) | buffers |
Adds some buffers.
buffers | The buffers. |
- (TBuffer) buffer |
Gets the buffer.
- (NSMutableArray*) buffers |
Gets the buffers.
+ (long long) calculateSystemTimestampWithBaseSystemTimestamp: | (long long) | baseSystemTimestamp | |
timestamp: | (long long) | timestamp | |
clockRate: | (int) | clockRate | |
baseTimestamp: | (long long) | baseTimestamp | |
Calculates a system timestamp given a base system timestamp, the current timestamp, a clock rate, and a base timestamp.
baseSystemTimestamp | The base system timestamp (offset). |
timestamp | The current timestamp. |
clockRate | The clock rate of the media. |
baseTimestamp | The base timestamp (offset). |
+ (long long) calculateTimestampWithBaseSystemTimestamp: | (long long) | baseSystemTimestamp | |
systemTimestamp: | (long long) | systemTimestamp | |
clockRate: | (int) | clockRate | |
Calculates a timestamp given a base system timestamp, the current system timestamp, and a clock rate.
This method assumes the base timestamp is zero.
baseSystemTimestamp | The base system timestamp (offset). |
systemTimestamp | The current system timestamp. |
clockRate | The clock rate of the media. |
+ (long long) calculateTimestampWithBaseSystemTimestamp: | (long long) | baseSystemTimestamp | |
systemTimestamp: | (long long) | systemTimestamp | |
clockRate: | (int) | clockRate | |
baseTimestamp: | (long long) | baseTimestamp | |
Calculates a timestamp given a base system timestamp, the current system timestamp, a clock rate, and a base timestamp.
baseSystemTimestamp | The base system timestamp (offset). |
systemTimestamp | The current system timestamp. |
clockRate | The clock rate of the media. |
baseTimestamp | The base timestamp (offset). |
- (TFrame) clone |
Clones this instance.
Implemented in FMLiveSwitchVideoFrame, and FMLiveSwitchAudioFrame.
- (NSMutableArray*) contributingSources |
Gets the contributing sources.
- (TFrame) createInstance |
Creates a new instance.
Implemented in FMLiveSwitchVideoFrame, and FMLiveSwitchAudioFrame.
- (TBufferCollection) createMediaBufferCollection |
Creates a media buffer collection.
Implemented in FMLiveSwitchVideoFrame, and FMLiveSwitchAudioFrame.
- (bool) discard |
Gets whether this frame should be discarded.
- (int) footprint |
Gets the approximate footprint of this media frame by returning the sum of its media buffer footprints.
- (TFrame) free |
Frees the buffers referenced by this instance.
- (TBuffer) getBufferWithFormat: | (TFormat) | format |
Gets the last buffer whose format is compatible with the specified format.
format | The format. |
- (TBuffer) getBufferWithFormat: | (TFormat) | format | |
sourceId: | (NSString *) | sourceId | |
Gets the last buffer whose format is compatible with the specified format and whose source ID matches the specified source ID.
format | The format. |
sourceId | The source identifier. |
- (TBuffer) getBufferWithFormatName: | (NSString *) | formatName |
Gets the last buffer whose format name matches the specified format name.
formatName | The format name. |
- (TBuffer) getBufferWithIsPacketized: | (bool) | isPacketized |
Gets the last buffer whose format packetization flag matches the specified flag.
isPacketized | Whether the buffer is packetized. |
- (TBuffer) getBufferWithIsPacketized: | (bool) | isPacketized | |
isEncrypted: | (bool) | isEncrypted | |
Gets the last buffer whose format packetization and encryption flags matches the specified flags.
isPacketized | Whether the buffer is packetized. |
isEncrypted | Whether the buffer is encrypted. |
- (bool) hasBufferWithFormat: | (TFormat) | format |
Checks if a buffer exists with format equivalence.
format | The format. |
true
if the buffer exists; otherwise, false
. - (bool) hasBufferWithFormat: | (TFormat) | format | |
sourceId: | (NSString *) | sourceId | |
Checks if a buffer exists with format equivalence and source ID.
format | The format. |
sourceId | The source identifier. |
true
if the buffer exists; otherwise, false
. - (instancetype) init |
Initializes a new instance of the FMLiveSwitchMediaFrame`4 class.
Implemented in FMLiveSwitchVideoFrame.
- (instancetype) initWithBuffer: | (TBuffer) | buffer |
Initializes a new instance of the FMLiveSwitchMediaFrame`4 class.
buffer | The buffer. |
- (instancetype) initWithBuffers: | (NSMutableArray *) | buffers |
Initializes a new instance of the FMLiveSwitchMediaFrame`4 class.
buffers | The buffers. |
Implemented in FMLiveSwitchVideoFrame.
- (TFrame) keep |
Keeps the buffers referenced by this instance.
- (TBuffer) lastBuffer |
Gets the most recent buffer.
+ (FMLiveSwitchMediaFrame*) mediaFrame |
Initializes a new instance of the FMLiveSwitchMediaFrame`4 class.
+ (FMLiveSwitchMediaFrame*) mediaFrameWithBuffer: | (TBuffer) | buffer |
Initializes a new instance of the FMLiveSwitchMediaFrame`4 class.
buffer | The buffer. |
+ (FMLiveSwitchMediaFrame*) mediaFrameWithBuffers: | (NSMutableArray *) | buffers |
Initializes a new instance of the FMLiveSwitchMediaFrame`4 class.
buffers | The buffers. |
- (NSString*) mid |
Gets the MID.
- (long long) networkSystemTimestamp |
Gets the network system timestamp.
For inbound media, this value is calculated in the network layer as soon as the packet payload is determined to contain media.
- (long long) ntpTimestampTicks |
Gets the NTP timestamp ticks matching FMLiveSwitchMediaFrame`4timestamp, set by RTP receivers for synchronization of inbound media streams.
- (void) removeBuffer: | (TBuffer) | buffer |
Removes a buffer.
buffer | The buffer. |
- (void) removeBuffers |
Removes all buffers.
- (void) removeBuffers: | (NSMutableArray *) | buffers |
Removes some buffers.
buffers | The buffers. |
- (NSString*) repairedRtpStreamId |
Gets the repaired RTP stream identifier.
- (int) rtpSequenceNumber |
Gets the RTP sequence number.
- (NSString*) rtpStreamId |
Gets the RTP stream identifier.
- (long long) rtpTimestamp |
Gets the RTP timestamp.
- (long long) sequenceNumber |
Gets the sequence number.
- (void) setBuffer: | (TBuffer) | value |
Sets the buffer.
- (void) setBuffers: | (NSMutableArray *) | value |
Sets the buffers.
- (void) setContributingSources: | (NSMutableArray *) | value |
Sets the contributing sources.
- (void) setDiscard: | (bool) | value |
Sets whether this frame should be discarded.
- (void) setMid: | (NSString *) | value |
Sets the MID.
- (void) setNetworkSystemTimestamp: | (long long) | value |
Sets the network system timestamp.
For inbound media, this value is calculated in the network layer as soon as the packet payload is determined to contain media.
- (void) setNtpTimestampTicks: | (long long) | value |
Sets the NTP timestamp ticks matching FMLiveSwitchMediaFrame`4timestamp, set by RTP receivers for synchronization of inbound media streams.
- (void) setRepairedRtpStreamId: | (NSString *) | value |
Sets the repaired RTP stream identifier.
- (void) setRtpSequenceNumber: | (int) | value |
Sets the RTP sequence number.
- (void) setRtpStreamId: | (NSString *) | value |
Sets the RTP stream identifier.
- (void) setRtpTimestamp: | (long long) | value |
Sets the RTP timestamp.
- (void) setSequenceNumber: | (long long) | value |
Sets the sequence number.
- (void) setSynchronizationSource: | (long long) | value |
Sets the synchronization source.
- (void) setSynchronized: | (bool) | value |
Sets whether this frame has a FMLiveSwitchMediaFrame`4systemTimestamp that is actively synchronized with other streams.
- (void) setSystemTimestamp: | (long long) | value |
Sets the system timestamp matching FMLiveSwitchMediaFrame`4timestamp but measured in system ticks.
For local frames, this value uses the same clock as FMLiveSwitchManagedStopwatch. For remote frames, this value uses a clock known only to the remote sender.
- (void) setTimestamp: | (long long) | value |
Sets the timestamp, measured according to the last buffer format's clock rate.
- (void) setTransportSystemTimestamp: | (long long) | value |
Sets the transport system timestamp.
For inbound media, this value is calculated after the network layer in the transport layer when the packet payload is picked up for processing (decryption, dejitter, track routing, etc.).
- (long long) synchronizationSource |
Gets the synchronization source.
- (bool) synchronized |
Gets whether this frame has a FMLiveSwitchMediaFrame`4systemTimestamp that is actively synchronized with other streams.
- (long long) systemTimestamp |
Gets the system timestamp matching FMLiveSwitchMediaFrame`4timestamp but measured in system ticks.
For local frames, this value uses the same clock as FMLiveSwitchManagedStopwatch. For remote frames, this value uses a clock known only to the remote sender.
- (long long) timestamp |
Gets the timestamp, measured according to the last buffer format's clock rate.
- (long long) transportSystemTimestamp |
Gets the transport system timestamp.
For inbound media, this value is calculated after the network layer in the transport layer when the packet payload is picked up for processing (decryption, dejitter, track routing, etc.).
- (void) updateTimestampWithBaseTimestamp: | (long long) | baseTimestamp | |
baseRtpTimestamp: | (long long) | baseRtpTimestamp | |
inputClockRate: | (int) | inputClockRate | |
outputClockRate: | (int) | outputClockRate | |
Updates the timestamp to match resampling.
baseTimestamp | The base timestamp, captured once for the first frame. |
baseRtpTimestamp | The base RTP timestamp, captured once for the first frame. |
inputClockRate | The input clock rate. |
outputClockRate | The output clock rate. |
|
protected |