BiddingStack Video Player Android Integration Guide
Play BiddingStack video, either single videos or playlists, in your Android app with the native VideoPlayerView, including ads and fullscreen out of the box.
| Component | Minimum Version |
|---|---|
| Android API Level | 24 (Android 7.0)+ |
Note: The video player requires an internet connection.
The SDK is distributed privately while in early access. Contact the BiddingStack team to get the SDK package.
Add the internet permission to your AndroidManifest.xml:
<uses-permission android:name="android.permission.INTERNET" />
Add the view to your layout with an explicit height:
<com.biddingstack.videoplayer.VideoPlayerView
android:id="@+id/videoPlayer"
android:layout_width="match_parent"
android:layout_height="220dp" />
Load a video:
val videoPlayer = findViewById<VideoPlayerView>(R.id.videoPlayer)
videoPlayer.load(
pubId = "YOUR_PUBLISHER_ID",
videoId = "YOUR_VIDEO_ID",
)
To play a playlist instead of a single video:
videoPlayer.load(
pubId = "YOUR_PUBLISHER_ID",
playlistId = "YOUR_PLAYLIST_ID",
)
Release the player when the host is destroyed:
override fun onDestroy() {
videoPlayer.destroy()
super.onDestroy()
}
| Parameter | Type | Default | Description |
|---|---|---|---|
pubId | String | required | Your BiddingStack publisher ID |
videoId | String? | null | Single-video mode; ignored when playlistId is set |
playlistId | String? | null | Playlist mode; takes precedence over videoId |
The Video ID and Playlist ID identify content hosted on SyncCMS. A SyncCMS account is required to upload and manage videos and playlists; copy the IDs from the SyncCMS UI.