BiddingStack Video Player for Android

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.

Requirements

ComponentMinimum Version
Android API Level24 (Android 7.0)+

Note: The video player requires an internet connection.

Installation

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" />

Usage

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()
}

load() Parameters

ParameterTypeDefaultDescription
pubIdStringrequiredYour BiddingStack publisher ID
videoIdString?nullSingle-video mode; ignored when playlistId is set
playlistIdString?nullPlaylist mode; takes precedence over videoId

Video Content

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.