Sceenic - WatchTogether
  • Watch Together and Synchronization SDKs
  • Watch together SDK
    • Watch Together SDK overview
    • Authentication overview
    • Tutorials
      • Android
        • Android - Java/Kotlin
      • iOS
        • iOS Swift/Objective-c adapter
      • Web
        • Authentication
        • Create a New Project
        • Adding WT SDK library to the project
        • Installing the NPM package
        • Sample application
          • The conference skeleton
          • Connecting to a Session
          • How to turn on and off video and audio
          • How to change video quality
          • Errors handling
          • Leave the call
        • Support
    • API references
      • Android reference
        • Session
        • SessionListener
        • SessionReconnectListener
        • SessionConnectionListener
        • Participant
          • ParticipantType
        • SessionError
      • iOS Swift reference
        • Session
        • SessionDelegate
        • Participant
        • ParticipantActiveSpeakerDelegate
        • ParticipantDelegate
        • LocalParticipant
        • WTError
        • DataTypes
      • iOS Objective-c adapter reference
        • SessionAdapter
        • SessionAdapterDelegate
        • ParticipantAdapter
        • LocalParticipantAdapter
        • ParticipantAdpaterDelegate
        • ParticipantAdapterActiveSpeakerDelegate
        • NSError
        • DataTypes
      • Web reference
        • WT Session
          • WTSession.connect(sToken, pName, uC, m)
          • WTSession.connectAsAViewer(sToken, pName)
          • WTSession.connectWithSharingScreen(sToken, pName)
          • WTSession.disconnect()
          • WTSession.enableStats()
          • WTSession.sendMessage(msg)
          • WTSession.sendPlayerData(time)
          • async WTSession.getSessionState()
        • SessionListeners
          • WTSessionListeners.onConnected(fn)
          • WTSessionListeners.onDisconnected(fn)
          • WTSessionListeners.onStreamCreated(fn)
          • WTSessionListeners.onLocalStreamCreated(fn)
          • WTSessionListeners.onMosReport(fn)
          • WTSessionListeners.offMosReport(fn)
          • WTSessionListeners.onMessageReceived(fn)
          • WTSessionListeners.onSyncData(fn)
          • WTSessionListeners.onIceDisconnected(fn)
        • Participant
          • setMediaQuality
        • ParticipantListeners
        • ErrorsListeners
        • ReconnectListeners
        • MediaDevices
      • Cluster authentication service reference (CAS)
  • Synchronization SDK
    • Synchronization SDK overview
    • Tutorials
      • Android
        • Android - Java/Kotlin
      • iOS
        • iOS - Swift/Objective-c
      • Web
        • Installing the NPM package
        • Web - TypeScript/React
        • v2.0 Migration Guide
    • API references
      • Android reference
        • SynchSDK
        • SynchListener
      • iOS reference
        • SynchSDK
        • SynchListener
      • Web reference
  • Celebrity SDK
    • Celebrity SDK overview
    • Tutorials
      • Web
        • Installing the NPM package
        • Web - TypeScript/React
    • API References
      • Web reference
  • Chat SDK
    • Chat SDK overview
    • Tutorials
      • Web
        • Installing the NPM package
        • Web - TypeScript/React
    • API Refences
      • Web reference
  • Public Chat SDK
    • Public Chat SDK overview
    • Tutorials
      • Web
        • Installing the NPM package
        • Web - TypeScript/React
    • API Refences
      • Web reference
  • Celebrity Watch Party
    • Web application
    • Android
    • iOS
    • Celebrity View & Fan View
Powered by GitBook
On this page

Was this helpful?

  1. Synchronization SDK
  2. Tutorials
  3. Web

v2.0 Migration Guide

PreviousWeb - TypeScript/ReactNextAPI references

Last updated 2 years ago

Was this helpful?

  • Please check the updated for more details.

  • Have a look at the SyncSDK version 2 implentation for reference .

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 .

  • startSynchronize() method of SyncSDK no longer accepts useProgramDateTime parameter

  • addPlayer() method of SyncSDK was renamed to addPlayerClient()

  • addPlayerClient() method of SyncSDK no longer accepts clientType parameter

  • PlayerDecorator's constructor now accepts player instance as a parameter which is stored in this.player for further usage by other methods

  • PlayerDecorator no longer has setPlayerInstance method, player instance should now be passed in PlayerDecorator's constructor

  • PlayerType, HtmlVideoPlayer, YoutubePlayer, Player are no longer exported and can't be used

  • getOffset() and setOffset() SyncSDK methods are no longer available

Improved error handling

  • createGroup() and startSynchronize() methods of SyncSDK now return Promise which can be rejected with

Better synchronization

  • getPlaybackRate() method should now be implemented by PlayerDecorator subclasses and return current playback rate

Improved group control

  • unmute() method should now be implemented by PlayerDecorator subclasses and unmute player when called

  • unmuteGroup() method is now available in SyncSDK

  • setGroupPosition() method of SyncSDK now accepts optional delta parameter. The parameter is in milliseconds and will be applied to the position returned by PlayerDecorator.getCurrentPosition() before sending to other clients

Unification of measurement units

SyncSDK now uses milliseconds for playback position in all methods.

  • getCurrentPosition() method of PlayerDecorator should now return the position in milliseconds

  • fastSeekToPosition() method of PlayerDecorator should now accept the position in milliseconds

API Documentation
here
here
SyncError