Builder
Builder class for constructing instances of VdoInitParams.
The Builder
class allows for a flexible configuration of the playback parameters. It includes methods to set the media's token, OTP, playback information, captions language, and various other options related to the playback experience. Note: For online playback, you should either use the setOtp and setPlaybackInfo methods together or use the setVideoId and setToken methods together.
Functions
Link copied to clipboard
Link copied to clipboard
Configures the media source using the specified media URL.
open fun configureMediaSource(@NonNull mediaUrl: String, @Nullable licenseUrl: String): VdoInitParams.Builder
Configures the media source with a specified media URL and an optional license URL.
Link copied to clipboard
Enables automatic resume of playback from the last position.
Link copied to clipboard
Allows the player to use locally saved media files for playback.
Link copied to clipboard
Sets whether to allow ADB (Android Debug Bridge) debugging during playback.
Link copied to clipboard
Sets whether the player should autoplay when the media is ready.
Link copied to clipboard
Sets the start and end time for a media clip playback.
Link copied to clipboard
Sets the custom player ID.
Link copied to clipboard
Sets whether to disable analytics for playback.
Link copied to clipboard
open fun setForceHighestSupportedBitrate(forceHighestSupportedBitrate: Boolean): VdoInitParams.Builder
Sets whether to force the use of the highest supported bitrate for video playback.
Link copied to clipboard
Sets whether to force the use of the lowest bitrate for video playback.
Link copied to clipboard
Sets the maximum video bitrate in kilobits per second (kbps).
Link copied to clipboard
Enables offline playback for a specified media ID.
Link copied to clipboard
Sets the OTP for online playback.
Link copied to clipboard
Sets the playback information for online playback.
Link copied to clipboard
Link copied to clipboard
Sets the language code for the player.
Link copied to clipboard
Sets the preferred captions language for the media.
Link copied to clipboard
Sets the player resume time in milliseconds.
Link copied to clipboard
Sets the technology override for playback.
Link copied to clipboard
Sets the token for online playback.
Link copied to clipboard
Sets the media metadata for the Vdo player.
Link copied to clipboard
Sets the video ID for online playback.
Link copied to clipboard
Skips the Media3 version check.
Link copied to clipboard