SynchListener

Interface SynchListener monitors all events from the SynchSdk.

The SynchListener is created together with the SynchSdk instance.

Public Method Summary

Type

Methods

Parameters

void

onClientList(clientList: [Client]) - List of all participants in the synchronization group

  • clientList - The list of connected clients in the group

void

onSetPlaybackRate(rate: Float) - Set playback rate

  • rate - Playback rate

void

onPlaybackFromPosition(position: Int)- Playback from position, similar to seek to the position

  • position - The value is in ms. The point from which the Player should start to play

Int

onGetPlayerPosition() -> Int - Get player position

  • position - The value is in ms. The actual Player current position, must be implemented and return a value

Float

onGetPlaybackRate() -> Float - Get playback rate

  • The actual Player rate/speed. Must be implemented and return a value

void

onSyncInfo(accuracy: Float, delta: Int) - Synchronization infomration about delta and accuracy

  • accuracy - synchronization accuracy

  • delta - synchronization delta

Last updated

Was this helpful?