SyncControllerDelegate

Undocumented

  • Callback method to inform delegate about SyncController’s state changes

    Declaration

    Objective-C

    - (void)SyncController:(id)controller DidChangeState:(NSUInteger)state;

    Swift

    func syncController(_ controller: Any!, didChangeState state: Any!)

    Parameters

    controller

    the invoking SyncController instance

    state

    a SyncControllerState state, an enumerated value

  • Callback method to inform delegate about jitter (difference between expected and actual media player time position) after a resynchronisation.

    @discussion: this method is invoked every ‘syncInterval’ seconds or after every observed change in ‘expectedTimeline’.

    Declaration

    Objective-C

    - (void)SyncController:(id)controller
              ReSyncStatus:(NSUInteger)status
                    Jitter:(NSTimeInterval)jitter
                 WithError:(SyncControllerError *)error;

    Swift

    optional func syncController(_ controller: Any!, reSyncStatus status: Any!, jitter: Any!, withError error: Any!)

    Parameters

    controller

    the invoking SyncController instance

    jitter

    time interval in seconds

    error

    resynchronisation error. If error !=nil, jitter will be zero or less.