This is an example project for creating a player plugin for the Applicaster Zapp Platform. You can use this example project as a reference to build and test your own player plugin.
Bintray credentials enable the build to pull Applicaster SDK dependencies from Maven.
- Add
MAVEN_USERNAMEandMAVEN_PASSWORDentries to your environment variables. - Contact an Applicaster developer to obtain credentials for the above entries.
Contains mock implementation of how the Zapp Platform creates a playable item and how it creates a player contract to launch the player plugin.
This portion of the code facilitates testing and should only be modified to change the playable item you need to pass to your plugin.
This module contains a sample player plugin in the following classes:
-
TestPlayerAdapter.java:
- Extends
BasePlayerwhich implements thePlayerContract. - Contains the initialization of the plugin and the plugin configurations
- Contains methods to initialize fullscreen or inline playback.
- Extends
-
TestPlayerActivity.java:
- Contains sample player logic utilizing a simple
VideoViewwith aMediaController(this is where you can put all the player specific functionality).
- Contains sample player logic utilizing a simple
- Create a new module that will replace the
TestPlayerPluginmodule. It should contain an adapter which extends theBasePlayeruse theTestPlayerAdapter.javaas a template. - Modify the
plugin_configurations.jsonto adapt to your player. Add any necessary configurations to the manifest. More info about the manifest can be found here - Modify the app modules
MainActivityto pass you the required playable. - Test that both the fullscreen and inline functionality work as expected.
- Continue to the deployment documentation (TBD)