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
Configthat 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
(a) You can download the latest version of the library file from the below URL and add it into your project's libs directory
else you can follow step (b)
(b) Add following maven repository URL in your project's build.gradle file
Add following dependency in your project's build.gradle file's
- Add retrofit library to your project if you don't have it already.
Add following compile options if you don't have it already
Calling NativeAndroidCollector with configurations
Use the following code snippet to add NativeAndroidCollector to your project.
A demo application can be found here. This can be used to test the Datazoom native Android collector classes.