Installation
Add the JitPack repository
Add the JitPack repository to your rootbuild.gradle file:
Add the dependency
Add the SDK dependency to your appbuild.gradle file:
Load content
Add PlayerView to your view hierarchy
You can either addPlayerView to your layout XML:
Load content into the widget
YOUR_PROJECT_ID with your numeric project ID and YOUR_CONTENT_ID with your content ID.
Once your app is running, the widget will automatically load the specified content.
Call
playerView.release() after the PlayerView has been removed from the view hierarchy. No other methods should be called on the PlayerView after it has been released.Configuration
The preferred way to configure the widget is by going to the Widget page in your project dashboard. However, you can override properties at the app level:Update properties after loading
You can also update properties after the widget has loaded:Example app
The example app demonstrates core widget functionality, including how to build a custom player UI. You can explore the source code on GitHub or download a precompiled version from the latest release.Example app
Explore the example application on GitHub.
Download example app
Download a precompiled version from the latest release.
GitHub repository
Android SDK repository
View the source code, releases, and API documentation on GitHub.