Android - Java - Kotlin
Overview
ollow this step by step tutorial to implement the video playback Synchronization SDK.
While the client-side SDK will take care of most of the functionality, in order to make this sample application work, you will need to use the API_KEY provided to you.
Full code samples can be found here
Requirements
To complete this guide successfully the following prerequisites are required:
A Sceenic account
Access key for sync SDK
Authentication
To instantiate the synch SDK you will need to use the API_KEY in order to create a synchronization group.
Using the API_KEY we will identify you as a customer and allow the client to connect to the synchronization session.
The API_KEY can be acquired - here
Create a project
Open the Android Studio and select New Project from the File menu
Select Empty Activity and click next
Choose Java or Kotlin as your programming language for the project
Configure your project's location, application, and package names
Set the minimum SDK version of the application to 21 or higher
Add the sync SDK library to your project
Create (if it does not exist) in the project a libs directory under the app folder
Add the file wtsyncsdk_v....aar to the libs folder
Edit the application's build.gradle file (in the app folder) with SDK
Permissions
Add the following permissions to the AndroidManifest.xml file under the app/src/main folder in the project above the application tag.
Instantiating the SDK
SDK builder - Call SyncSdkBuilder to instantiate the SDK.
Start synchronization
Stop synchronization
Managing synchronization logic
The synchronization logic is managed using callbacks, using them you will be able to create the interaction you need.
In the sample application, you can see an example for implementing the necessary callbacks
Running the application
Once coding is finished, you should be able to run the application in the Android Studio emulator.
You can view the complete Watch Together sample application here
Support
Need technical support? contact us at [email protected].
Last updated
Was this helpful?