Class VdoInitParams
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class VdoInitParams implements Parcelable
VdoInitParamsis 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
VdoInitParamscan be created using the Builder class.VdoInitParamsimplements 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classVdoInitParams.BuilderBuilder class for constructing instances of VdoInitParams.
The
Builderclass 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.
-
Field Summary
Fields Modifier and Type Field Description public final Stringtokenpublic final Stringotppublic final StringplaybackInfopublic final StringpreferredCaptionsLanguagepublic final booleanofflinePlaybackpublic final StringmediaIdpublic final intstartTimeMspublic final intendTimeMspublic final intresumeTimeMspublic final booleanautoplaypublic final booleanforceLowestBitratepublic final booleanforceHighestSupportedBitratepublic final intmaxVideoBitrateKbpspublic final Array<String>techOverridepublic final booleandisableAnalyticspublic final booleanallowAdbDebuggingpublic final booleanisAutoResumeEnabledpublic HashMap<String, Object>configMappublic final StringcustomPlayerIdpublic final VdoMediaMetadatavdoMediaMetadatapublic final booleanskipMedia3VersionCheckpublic final StringlanguageCodepublic final static Parcelable.Creator<VdoInitParams>CREATOR
-
Method Summary
Modifier and Type Method Description booleanequals(Object o)inthashCode()static VdoInitParamscreateParamsWithOtp(String otp, String playbackInfo)static VdoInitParamscreateParamsWithToken(String token, String videoId)Create VdoInitParams with otp and playbackInfo. static VdoInitParamscreateParamsForOffline(String mediaId, boolean autoResumePosition)static VdoInitParamscreateParamsForOffline(String mediaId)VdoInitParams.BuildergetBuilder()Create a new Builder with the initial values from this VdoInitParams instance. intdescribeContents()voidwriteToParcel(Parcel dest, int flags)-
-
Method Detail
-
hashCode
int hashCode()
-
createParamsWithOtp
@Deprecated() static VdoInitParams createParamsWithOtp(String otp, String playbackInfo)
- Parameters:
otp- otpplaybackInfo- playbackInfo- Returns:
a VdoInitParams object
-
createParamsWithToken
static VdoInitParams createParamsWithToken(String token, String videoId)
Create VdoInitParams with otp and playbackInfo.
- Parameters:
token- tokenvideoId- videoId- Returns:
a VdoInitParams object
-
createParamsForOffline
static VdoInitParams createParamsForOffline(String mediaId, boolean autoResumePosition)
-
createParamsForOffline
static VdoInitParams createParamsForOffline(String mediaId)
-
getBuilder
VdoInitParams.Builder getBuilder()
Create a new Builder with the initial values from this VdoInitParams instance.
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
-
-
-