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 - Recieve the value for the groupSeek functionality.

    • The value is in ms and represents 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 information about delta and accuracy

  • accuracy - synchronization accuracy

  • delta - synchronization delta

void

onPause()

receive group pause event

void

onResumePlay()

receive group play event

Client model description

TypeFieldDescription

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