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 |
|
void | onSetPlaybackRate(rate: Float) - Set playback rate |
|
void | onPlaybackFromPosition(position: Int)- Playback from position, similar to seek to the position |
|
Int | onGetPlayerPosition() -> Int - Get player position |
|
Float | onGetPlaybackRate() -> Float - Get playback rate |
|
void | onSyncInfo(accuracy: Float, delta: Int) - Synchronization information about delta and accuracy |
|
void | onPause() | receive group pause event |
void | onResumePlay() | receive group play event |
Client model description
Type | Field | Description |
---|---|---|
String | name | clients name |
String | id | clients id |
Bool | leader | abstract flag if client is leader/syncronizer |
Bool | local | if client from client list is a local client |
Last updated