The Android MediaPlayer framework allows access to the native media player included with the Android operating system. Datazoom’s NativeAndroidCollector facilitates native Android applications to send video playback events based on the configuration created in data pipes.
- Login to Datazoom here: https://app.datazoom.io
- Add a Collector as indicated here: How to add a Collector
- Copy the
config keythat was created at the end of the process
Click the icon indicated below to copy the Configuration Key
You will see this message:
4. Replace the
<configuration id from Datazoom> with the Key you copied above.
5. Replace the
<url given by Datazoom> with
6. Replace the
<Videoview object> with your
Adding dependencies to your project
Add the following maven repository URL in your project's build.gradle file
Add the following dependency for Datazoom Android Media Player SDK in your project's build.gradle file's dependencies block
Add retrofit library to your project if you don't have it already
Calling NativeAndroidCollector with configurations
After a successful connection using the following method to start or stop recording events
A demo application can be found here. This can be used to test the Datazoom native Android collector classes.