-
- All Implemented Interfaces:
public class VdoInitParams.Builder
Builder class for creating VdoInitParams with additional options.
-
-
Constructor Summary
Constructors Constructor Description VdoInitParams.Builder()
-
Method Summary
-
-
Method Detail
-
setVideoId
VdoInitParams.Builder setVideoId(String videoId)
-
updateConfig
VdoInitParams.Builder updateConfig(HashMap<String, Object> configMap)
-
setPlayerConfig
VdoInitParams.Builder setPlayerConfig(String customPlayerId)
-
setCustomPlayer
VdoInitParams.Builder setCustomPlayer(String customPlayerId)
-
setOfflinePlayback
VdoInitParams.Builder setOfflinePlayback(String mediaId)
-
enableOfflinePlayback
VdoInitParams.Builder enableOfflinePlayback()
Allows Player to use locally saved media files for playback. Token/OTP and Playback Info must me provided before using this method with Builder using setToken and setPlaybackInfo. However, we discourage you from using this method with Builder, this method serves a very special use case of playing media items saved locally without a DRM license. Generally, you will be using setOfflinePlayback to play media items offline which should be downloaded using enqueueV2.
-
setClips
VdoInitParams.Builder setClips(int startTimeMs, int endTimeMs)
-
setResumeTime
VdoInitParams.Builder setResumeTime(int resumeTimeMs)
Set player resume time in milliseconds. Setting this will suppress any global settings related to auto resume.
-
enableAutoResume
VdoInitParams.Builder enableAutoResume()
-
build
VdoInitParams build()
-
setOtp
@Deprecated() VdoInitParams.Builder setOtp(String otp)
-
setToken
VdoInitParams.Builder setToken(String token)
-
setPlaybackInfo
@Deprecated() VdoInitParams.Builder setPlaybackInfo(String playbackInfo)
-
setAutoplay
VdoInitParams.Builder setAutoplay(boolean autoplay)
-
setPreferredCaptionsLanguage
VdoInitParams.Builder setPreferredCaptionsLanguage(String preferredCaptionsLanguage)
-
setForceLowestBitrate
VdoInitParams.Builder setForceLowestBitrate(boolean forceLowestBitrate)
-
setForceHighestSupportedBitrate
VdoInitParams.Builder setForceHighestSupportedBitrate(boolean forceHighestSupportedBitrate)
-
setMaxVideoBitrateKbps
VdoInitParams.Builder setMaxVideoBitrateKbps(int maxVideoBitrateKbps)
-
setBufferingGoalMs
VdoInitParams.Builder setBufferingGoalMs(int bufferingGoalMs)
Set buffering goal in milliseconds. It is not recommended to change this value for most use cases. This cannot be set to a value less than 15000.
-
setTechOverride
VdoInitParams.Builder setTechOverride(Array<String> techOverride)
-
setDisableAnalytics
VdoInitParams.Builder setDisableAnalytics(boolean disableAnalytics)
-
setAllowAdbDebugging
VdoInitParams.Builder setAllowAdbDebugging(boolean allowAdbDebugging)
-
-
-
-