The main purpose of this sample application is to familiarize the users with the key functionalities of the video player.
Getting the compiled APK
Download the pre-compiled APK to install in your Android device here.
Getting the code
The source code for the sample app can be found in our GitHub project. If you haven’t already done so, clone the project into a local directory:
git clone https://github.com/DabKickDeveloper/DabKick-Video-Player-Demo.git
Next, open the project in Android Studio. You should see the following in the Android Project view.
Compiling and running
To compile and run the sample app, select and run the app configuration in Android Studio. The sample app will install and run on a connected Android device. We recommend using a physical device if possible and 2 devices in order to fully test the functionalities of the dabkick player. Ensure that your device is with an API level of atleast 14.
Once run successfully, you should be able to see the home page(MainActivity). The sample app homepage presents of a list of videos. Selecting a video will open a second activity (PlayerActivity) for playback as shown in the below image.
Figure 2 in Device 1 after selecting a video to play
Clicking on the play button in the video controls should start playing the video, you can invite a friend/another user to 'Watch Together' by tapping on the watch together button provided on the right hand corner of the dabkick player. Upon tapping the button, a custom edit text appears which hints you to enter your name and proceed to tapping on the "Start inviting" option
Upon the above step you should be able to see multiple options for sharing such as hangouts, email etc. Select any of the available options and send it to the desired friend.
Your friend will recieve the url on the other phone and upon clicking on the url the same video will start playing in both the devices in sync.
You can swipe up to chat with your friend as the video plays along on both ends.
You may tap on the back button of your android device to exit the video player.
Min Api level - 14
Target sdk version - 27
Exo player version - 2.8.0
You can integrate our Dabkick video player into your own app. To do this follow the integration documentation