FMLiveSwitchSynchronizeContext Class Reference

A stream synchronization context. More...

Instance Methods

(instancetype) - initWithNtpTimestampTicks:systemTimestamp:
 Initializes a new instance of the FMLiveSwitchSynchronizeContext class. More...
 
(instancetype) - initWithSystemTimestamp:
 Initializes a new instance of the FMLiveSwitchSynchronizeContext class. More...
 
(long long) - ntpTimestampTicks
 Gets the NTP timestamp ticks. More...
 
(void) - setNtpTimestampTicks:
 Sets the NTP timestamp ticks. More...
 
(void) - setSystemTimestamp:
 Sets the system timestamp. More...
 
(long long) - systemTimestamp
 Gets the system timestamp. More...
 

Class Methods

(FMLiveSwitchSynchronizeContext *) + synchronizeContextWithNtpTimestampTicks:systemTimestamp:
 Initializes a new instance of the FMLiveSwitchSynchronizeContext class. More...
 
(FMLiveSwitchSynchronizeContext *) + synchronizeContextWithSystemTimestamp:
 Initializes a new instance of the FMLiveSwitchSynchronizeContext class. More...
 

Detailed Description

A stream synchronization context.

Method Documentation

◆ initWithNtpTimestampTicks:systemTimestamp:

- (instancetype) initWithNtpTimestampTicks: (long long)  ntpTimestampTicks
systemTimestamp: (long long)  systemTimestamp 

Initializes a new instance of the FMLiveSwitchSynchronizeContext class.

Parameters
ntpTimestampTicksThe NTP timestamp ticks.
systemTimestampThe system timestamp.
Deprecated:
Use SynchronizeContext(systemTimestamp) instead.

◆ initWithSystemTimestamp:

- (instancetype) initWithSystemTimestamp: (long long)  systemTimestamp

Initializes a new instance of the FMLiveSwitchSynchronizeContext class.

Parameters
systemTimestampThe system timestamp.

◆ ntpTimestampTicks

- (long long) ntpTimestampTicks

Gets the NTP timestamp ticks.

Deprecated:
Use SystemTimestamp instead.

◆ setNtpTimestampTicks:

- (void) setNtpTimestampTicks: (long long)  value

Sets the NTP timestamp ticks.

Deprecated:
Use SystemTimestamp instead.

◆ setSystemTimestamp:

- (void) setSystemTimestamp: (long long)  value

Sets the system timestamp.

Uses a clock known only to the remote sender, but consistent across synchronized streams.

◆ synchronizeContextWithNtpTimestampTicks:systemTimestamp:

+ (FMLiveSwitchSynchronizeContext*) synchronizeContextWithNtpTimestampTicks: (long long)  ntpTimestampTicks
systemTimestamp: (long long)  systemTimestamp 

Initializes a new instance of the FMLiveSwitchSynchronizeContext class.

Parameters
ntpTimestampTicksThe NTP timestamp ticks.
systemTimestampThe system timestamp.
Deprecated:
Use SynchronizeContext(systemTimestamp) instead.

◆ synchronizeContextWithSystemTimestamp:

+ (FMLiveSwitchSynchronizeContext*) synchronizeContextWithSystemTimestamp: (long long)  systemTimestamp

Initializes a new instance of the FMLiveSwitchSynchronizeContext class.

Parameters
systemTimestampThe system timestamp.

◆ systemTimestamp

- (long long) systemTimestamp

Gets the system timestamp.

Uses a clock known only to the remote sender, but consistent across synchronized streams.