SynchroniserDelegate
@protocol SynchroniserDelegate <NSObject>
The callback interface for a Synchroniser’s delegate object.
-
Callback method to inform delegate about Synchroniser state changes
Declaration
Objective-C
- (void)Synchroniser:(Synchroniser *)synchroniser DidChangeState:(SynchroniserState)state;Swift
func synchroniser(_ synchroniser: Synchroniser!, didChangeState state: Any!)Parameters
synchroniserthe invoking Synchroniser instance
statea SynchroniserState state
-
Callback method to inform delegate about jitter (difference between expected and actual video player time position) afte resynchronisation of a video player. This callback is invoked after each resynchronisation procedure that causes a playback readjustment.
Declaration
Objective-C
- (void)VideoSyncController:(id)controller ReSyncStatus:(id)status Jitter:(NSTimeInterval)jitter WithError:(id)error;Swift
func videoSyncController(_ controller: Any!, reSyncStatus status: Any!, jitter: Any!, withError error: Any!)Parameters
controllerVideoPlayerSyncController object synchronising a video player
statusone of VideoSyncControllerState enumerated states
jittersynchronisation jitter for the video player the controller controls
errorerror condition during synchronisation
-
Callback method to inform delegate about jitter (difference between expected and actual audio player time position) after resynchronisation of a audio player. This callback is invoked after each resynchronisation procedure that causes a playback readjustment.
Declaration
Objective-C
- (void)AudioSyncController:(id)controller ReSyncStatus:(id)status Jitter:(NSTimeInterval)jitter WithError:(id)error;Swift
func audioSyncController(_ controller: Any!, reSyncStatus status: Any!, jitter: Any!, withError error: Any!)Parameters
controllerAudioSyncController object synchronising an audio player
statusone of AudioSyncControllerState enumerated states
jittersynchronisation jitter for the audio player the controller controls
errorerror condition during synchronisation
-
Callback reporting time since the start of the TV programme.
Declaration
Objective-C
- (void)Synchroniser:(Synchroniser *)synchroniser CurrentTime:(NSTimeInterval)time Error:(NSTimeInterval)error;Swift
func synchroniser(_ synchroniser: Synchroniser!, currentTime time: Any!, error: Any!)Parameters
synchroniserthe synchroniser object carrying out DVB-CSS synchronisation
timetime in seconds since the start of the TV programme
errorerror bounds on this time reading
-
Callback reporting the current synchronisation accuracy. This method is called back every 2 seconds. For the latest synchronisation accuracy reading, read this class’s error property.
Declaration
Objective-C
- (void)Synchroniser:(Synchroniser *)synchroniser SyncAccuracy:(NSTimeInterval)error;Swift
func synchroniser(_ synchroniser: Synchroniser!, syncAccuracy error: Any!)Parameters
synchroniserthe synchroniser object carrying out DVB-CSS synchronisation
errorerror bounds from the synchronisation process
-
Reports new or updated Content Id Information from the TV when received through the CSS-CI protocol. The Content Id Information object contains a content identifier for the TV programme, the MRS URL, the CSS-WC server endpoint URL, the CSS-TS server endpoint URL, the presentation status of the TV and a list of timelines currently available at the TV for synchronisation.
Declaration
Objective-C
- (void)Synchroniser:(Synchroniser *)synchroniser NewContentInfoAvailable:(id)cii ChangeMask:(id)cii_change_mask;Swift
func synchroniser(_ synchroniser: Synchroniser!, newContentInfoAvailable cii: Any!, changeMask cii_change_mask: Any!)Parameters
synchroniserthe synchroniser object overseeing DVB-CSS synchronisation
ciian object encapsulating Content Id and Information (CII)
cii_change_maska bit mask showing which properties has changed.
-
A convenience method to report only ContentId changes.
Declaration
Objective-C
- (void)Synchroniser:(Synchroniser *)synchroniser ContentIdDidChange:(NSString *)contentId;Swift
func synchroniser(_ synchroniser: Synchroniser!, contentIdDidChange contentId: Any!)Parameters
synchroniserthe synchroniser object overseeing DVB-CSS synchronisation
contentIda Content Identifier for the content played by the TV
View on GitHub
SynchroniserDelegate Protocol Reference