SynchListener

The Interface SyncListener invokes all the events from the SyncSdk.

The SyncListener is created together with the SyncSdk instance.

Interface Callbacks Summary

Type

Methods

Parameters

void

onClientList(syncClients: List<SyncClient>) - List of all clients in the synchronization group

  • syncClients- The list of connected clients in the group

  • SyncClient - data class. It contains id, name, isLeader and isLocal properties of the client

void

onSetPlaybackRate(rate: Float) - Set playback rate

  • rate - Playback rate

void

onPlaybackFromPosition(psition: Long) - 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

Long

onGetPlayerPosition(): Long - 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

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

void

onSyncInfo(syncInfo: SyncInfo) - Synchronization infomration about delta and accuracy

  • syncInfo - The Object contains the synchronization’s delta and accuracy information

void

onDisconnected() - The client has been disconnected from the group. All connections will be closed

Last updated