VdoInitParams

VdoInitParams is a final class that encapsulates the initialization parameters required to load a media into a VdoPlayer for playback. This class includes various configurations and options such as the media's token, OTP, playback information, captions language, and more. These parameters can be specified for either online or offline playback.

Instances of VdoInitParams can be created using the Builder class.

VdoInitParams implements the Parcelable interface to allow it to be passed between Android components.

Note: For online playback, you should either use the setOtp and setPlaybackInfo methods together or use the setVideoId and setToken methods together.

Types

Link copied to clipboard
open class Builder
Builder class for constructing instances of VdoInitParams.

Properties

Link copied to clipboard
Whether to allow ADB (Android Debug Bridge) debugging during playback.
Link copied to clipboard
Whether autoplay is enabled.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The custom player ID for identifying a specific player configuration.
Link copied to clipboard
Whether to disable analytics tracking.
Link copied to clipboard
The end time in milliseconds for video playback.
Link copied to clipboard
Whether to force the use of the highest supported bitrate.
Link copied to clipboard
Whether to force the use of the lowest bitrate available.
Link copied to clipboard
Indicates whether automatic resume functionality is enabled.
Link copied to clipboard
The language code for the player.
Link copied to clipboard
The maximum video bitrate in kilobits per second.
Link copied to clipboard
The media ID for offline playback.
Link copied to clipboard
Whether offline playback is enabled.
Link copied to clipboard
val otp: String
The OTP for secure playback.
Link copied to clipboard
The playback information used for secure playback.
Link copied to clipboard
The preferred captions language for video playback.
Link copied to clipboard
The resume time in milliseconds for resuming playback.
Link copied to clipboard
Whether to skip the Media3 version check.
Link copied to clipboard
The start time in milliseconds for video playback.
Link copied to clipboard
The technology override for media playback.
Link copied to clipboard
The token used for authentication.
Link copied to clipboard
Metadata associated with the media content.

Functions

Link copied to clipboard
open fun createParamsForOffline(mediaId: String, autoResumePosition: Boolean): VdoInitParams
Link copied to clipboard
open fun createParamsWithOtp(otp: String, playbackInfo: String): VdoInitParams
Link copied to clipboard
open fun createParamsWithToken(token: String, videoId: String): VdoInitParams
Create VdoInitParams with otp and playbackInfo.
Link copied to clipboard
open fun describeContents(): Int
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
Create a new Builder with the initial values from this VdoInitParams instance.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun writeToParcel(dest: Parcel, flags: Int)