v2.0 Migration Guide
Please check the updated API Documentation for more details.
Have a look at the SyncSDK version 2 implentation for reference here.
Improved Player decorator usage
SyncSDK now doesn't have any player-specific logic inside to allow for better control. PlayerDecorator
example implementation for different players can be found here.
startSynchronize()
method of SyncSDK no longer acceptsuseProgramDateTime
parameteraddPlayer()
method of SyncSDK was renamed toaddPlayerClient()
addPlayerClient()
method of SyncSDK no longer acceptsclientType
parameterPlayerDecorator
's constructor now accepts player instance as a parameter which is stored inthis.player
for further usage by other methodsPlayerDecorator
no longer hassetPlayerInstance
method, player instance should now be passed inPlayerDecorator
's constructorPlayerType, HtmlVideoPlayer, YoutubePlayer, Player
are no longer exported and can't be usedgetOffset()
andsetOffset()
SyncSDK methods are no longer available
Improved error handling
createGroup()
andstartSynchronize()
methods of SyncSDK now return Promise which can be rejected with SyncError
Better synchronization
getPlaybackRate(
) method should now be implemented byPlayerDecorator
subclasses and return current playback rate
Improved group control
unmute()
method should now be implemented byPlayerDecorator
subclasses and unmute player when calledunmuteGroup()
method is now available in SyncSDKsetGroupPosition()
method of SyncSDK now accepts optionaldelta
parameter. The parameter is in milliseconds and will be applied to the position returned byPlayerDecorator.getCurrentPosition()
before sending to other clients
Unification of measurement units
SyncSDK now uses milliseconds for playback position in all methods.
getCurrentPosition()
method ofPlayerDecorator
should now return the position in millisecondsfastSeekToPosition()
method ofPlayerDecorator
should now accept the position in milliseconds
Last updated