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 acceptsuseProgramDateTimeparameteraddPlayer()method of SyncSDK was renamed toaddPlayerClient()addPlayerClient()method of SyncSDK no longer acceptsclientTypeparameterPlayerDecorator's constructor now accepts player instance as a parameter which is stored inthis.playerfor further usage by other methodsPlayerDecoratorno longer hassetPlayerInstancemethod, player instance should now be passed inPlayerDecorator's constructorPlayerType, HtmlVideoPlayer, YoutubePlayer, Playerare 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 byPlayerDecoratorsubclasses and return current playback rate
Improved group control
unmute()method should now be implemented byPlayerDecoratorsubclasses and unmute player when calledunmuteGroup()method is now available in SyncSDKsetGroupPosition()method of SyncSDK now accepts optionaldeltaparameter. 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 ofPlayerDecoratorshould now return the position in millisecondsfastSeekToPosition()method ofPlayerDecoratorshould now accept the position in milliseconds
Last updated
Was this helpful?