Skip to main content

Player configuration

VPVideoModel

PropertyDescription
titleA string that is empty by default, which represents the title of the video.
videoIdA string that is empty by default, which represents the Id of the video.
thumbnailA string that is empty by default, which reporesents the video thumbnail.
durationA Double that is 0.0 by default, which represemts the video duration.
descriptionA string that is empty by default, which represents the video descripton.
liveA Boolean that is false by default, which indicates whether the video is live.
liveTypeA string that is LiveType.None.type (enum) by default, which represents the type of live video.
entityIdAn string that is empty by default, which represents the entity Id of the video.
serieEntityIdAn Int that is 0 by default, which represents the entity Id of Serie.
adIdA string that is empty by default, which represents the Id of Video Ads.
videoSourceA string that is empty by default, which represents the source of the video file.
skipIntroThis config which is of the SkipIntroModel type represents the model of Skip Intro.
adsThis config which is of the AdsModel type represents the model of Ads.
advertisingA Boolean that is true by default, which when set to false won't show advertising on your video.
filmStripImageUrlA string that is empty by default, represents the FilmStrip Image Url.
startTimeAn Int that is 0 by default,, which represents the video start time.
sdkPlaylistThis config which is of the PlaylistModel type represents the model of the playlist.
subtitlesThis config which is of the ArrayList<VPSubtitleModel> represents the video subtitles.
hasDRMA Boolean that is false by default, which should be set to true if video has drm.
offlineMediaItemThis config which is of the MediaItem type and is null by default, represents the MediaItem of Offline Media.
downloadCacheThis config which is of the com.google.android.exoplayer2.upstream.cache.Cache? type and is null by default, represents the Cache for Offline Media.
shareUrlA string that is empty by default, which represents the Share Url of the video.
serieIdA string that is empty by default, which represents the Id of the serie.
useCustomPlaylistA boolean that is false by default, which indicates whether the video will have a custom playlist.
castVideoSourceA string that is empty by default, which represents the source to be played in cast mode.

VPPlayerConfigs

ConfigDescription
configIdA string that is empty by default, which represents the Id of Config.
logoThe Logo Model which is of the LogoModel type.
loopA boolean that is false by default, which allows you to enable video loop.
controlsThis config which is of the ControlsModel type allows you to set the controls buttons visibility.
langThis config which is of the LanguageModel type allows you to set text localizations.
autostartOnLoadThis config which is of the AutoStartOnLoadModel type allows you to auto start on video load.
skinThis config which is of the SkinModel type allows you to set the player skins (colours).
prebidThis config which is of the PrebidModel type, allows you to set up the prebid.
showPlayerControlsDuringVideoAdvertisementA boolean that is false by default, which when set to true will show the controls during a video ad.
autoPlayDefaultEnabledA boolean that is false by default, which will disable the auto play switch.
userIdAn int that is 0 by default, which represents the user Id which is used as a custom parameter on DRM.
enableHapticFeedbackOnButtonClickA boolean that is true by default, which when set to false will not perform haptic feedback on button clicks.
enableHapticFeedbackOnPinchToZoomA boolean that is true by default, which when set to false if will not perform haptic feedback on pinch to zoom.
readQualitiesA boolean that is true by default, which when set to false will not read the video qualities from HLS.
readSubtitlesFromHLS A boolean that is false by default, which when set to true will read the video subtitles from HLS.
delayLiveVideosTimeA long that is 3000 by default, which allows you to set the desired delay time for live videos in ms.
delayLiveVideosA boolean that is true by default, which allows you to use start time in the initializePlayer() method.
enablePreRollAdvertisementsA boolean that is true by default, which when set to false allows you to disable pre roll advertisements.
enableMidAndPostRollAdvertisementsA boolean that is true by default, which when set to false allows you to disable advertisements for mid roll and post roll.
usePortraitModeA boolean that is true by default, which allows you to use portrait mode.
usePinchToZoomFeatureA boolean that is true by default, which when set to false will disable the "Pinch to zoom" feature.
useChromeCastInBackgroundModeA boolean that is true by default, which when set to false will not use chromecast in background mode.
useChromeCastA boolean that is true by default, which allows you to use chromecast.
useChromeCastAutoPlayA boolean that is true by default, which allows to enable auto play of chromecast videos.
enableUnspecifiedOrientationOnCloseFullScreenA boolean that is false by default, which when set to true allows you to set unspecified orientation on close full screen.
sliderHiddenA boolean that is false by default, which allows you to hide the slider.
timeHiddenA boolean that is false by default, which allows you to hide the settings time.
seekForwardButtonHiddenA boolean that is false by default, which allows you to hide the seek forward button.
seekBackwardButtonHiddenA boolean that is false by default, which allows you hide the seek backward button.
helperButtonHiddenA boolean that is true by default, which allows you hide the helper button.
orientationEnabledA boolean that is true by default, which enables screen orientation.
spriteSheetHiddenA boolean that is false by default, which allows you to hide the sprite sheet.
skipAmountAn Int that is 0 by default, which allows you to set the player seek forward and backward seconds.
controlsBackgroundAlphaA boolean that is true by default, which allows you to set your background controls alpha.
enablePreviousButtonA boolean that is true by default, which allows you to enable the Next button in PlayerView.
enableNextButtonA boolean that is true by default, which allows you to enable the Previous button in PlayerView.
autoInitializeRelatedVideosA boolean that is false by default, which will not initialize related auto on startup.
useCustomPlayerControlsA boolean that is false by default, which when set to true will allow you to set custom player controls.
chromeCastApplicationIdA string that is empty by default, which allows you to set to your application id if you have one.
helperButtonImageDrawableAn 'int' that is R.drawable.vp_minimize_player_icon by default, which indicates the desired button icon.
dimensionRatioA string that is 16:9 by default, which allows you to set the player dimension ratio.
sliderBaseColorAn Int that is Color Int by default, which allows you to set the slider's base color.
sliderPlayedColorAn Int that is Color Int by default, which allows you to set the slider's progress color.
sliderBufferedColorAn Int that is Color Int by default, which allows you to set the slider's buffer color.
sliderThumbColorAn Int that is Color Int by default, which allows you to set the player's slider thumb color.
skipAmountAn Int that is 5 by default, which allows you to set the player seek forward and backward seconds.
controlsBackgroundAlphaAn Float that is 0.45f by default, which allows you to set your background controls alpha.
helperButtonImageAn Int that is R.drawable.vp_minimize_player_icon by default, which allows you to set your desired button icon.
timeFontThis config which is of the TypeFont type has a mueso 500 value by default, and it allows you to set the player time font.
pauseWhenRelatedIsShownA boolean that is false by default, which when set to true will pause the video when related videos are shown in the player.
enableGravityChangeA boolean that is true by default, which when set to false will disable gravity change in the video.
forceSoundA boolean that is false by default, which when set to true will disable silent mode.

ControlsModel

ConfigDescription
settingsButtonA boolean that is true by default, which allows you to set the visibility of Settings Button.
chromecastButtonA boolean that is false by default, which allows you to set the visibility of Chromecast Button.
nextButtonVisibilityA boolean that is false by default, which allows you to set the visibility of Next Button.
fullscreenButtonA boolean that is false by default, which allows you to set the visibility of Fullscreen Button.
shareButtonA boolean that is true by default, which allows you to set the visibility of Share Button.
showQualitiesA boolean that is true by default, which allows you to set the visibility of video quality options.
showCaptionsA boolean that is true by default, which allows you to set the visibility of video captions.
autoPlayShownA boolean that is true by default, which allows you to set the visibility of the auto-play button.
delayLiveVideosTimeA 'long' that is 3000 by default, which indicates the desired delay time for live videos in ms.
showLiveIconA boolean that is true by default, which allows you to set the visibility of the live icon.
showHelperButtonA boolean that is true by default, which allows you to set the visibility of the help button.
delayLiveVideosA boolean that is true by default, which allows you to enable or disable delay in live videos.

SkipIntroModel

PropertyDescriptionTypeDefault Value
stateSet to true if you want to use Skip Intro in your videoBooleanfalse
skipFromSecond of video to skip fromInt0
skipTosecond of video to skip toLong10

AdsModel

PropertyDescriptionTypeDefault Value
vmapAds VMAP urlStringempty
adBreaksArrayList of AdBreaksArrayList<VPAdModel>?arrayListof()
biddingSet to true if you want to use BiddingBooleanfalse
biddersArrayList of AdBiddersModelArrayList<AdBiddersModel>arrayListof()

VPAdModel

PropertyDescriptionTypeDefault Value
vastUrlArrayList of Strings with ad vast UrlArrayList<String>?arrayListOf()
secondAd Breake timingSecond0
breakTimingTypeBreakTimingType enum: percentage or timeBreakTimingTypeBreakTimingType.percentage
breakTypeAd Break Type enum: preroll, midroll, postroll or noneAdBreakTypeAdBreakType.none

PlaylistModel

PropertyDescriptionTypeDefault Value
stateState of playlist, set to true if you want to show playlistBooleanfalse
playlistIdId of PlaylistStringfalse
titleTitle of PlaylistStringempty
videosArrayList of Videos on playlistArrayList<VPEntityModel>arrayListOf()

VPEntityModel

PropertyDescriptionTypeDefault Value
entityIdId of VideoStringempty
titleTitle of VideoStringempty
thumbnailUrlVideo Thumbnail UrlStringempty
serieNameName of SerieStringempty
durationVideo DurationDouble0.0
durationStringVideo Duration StringStringempty

VPSubtitleModel

PropertyDescriptionTypeDefault Value
subtitleLabelLabel of subtitlesStringempty
subtitleLanguageLanguage of SubtitleStringempty
subtitleUrlSubtitle file urlStringempty
mimeTypeMime Type of SubtitlesStringempty
isSubtitleSelectedIs Subtitles SelectedBooleanfalse

LanguageModel

PropertyDescriptionTypeDefault Value
languageControlsModelThe controls modelLanguageControlsModel
settingsThe settings modelSettingsModel

LanguageControlsModel

PropertyDescriptionTypeDefault Value
nextVideoCancel The keyword for canceling the next video.StringCancel
playNow The keyword for playing the video.StringPlay Now
settingsSettings Button Text LanguageStringSettings
chromecastChromecast Button Text LanguageStringChromecast
airplayAirplay Button Text LanguageStringAirplay
relatedRelated Button Text LanguageStringRelated
skipIntroSkipIntro Button Text LanguageStringSkip Intro

AutoStartOnLoadModel

PropertyDescriptionTypeDefault Value
onMobileSet to false if you dont want to automatically play video on loadBooleantrue

SettingsModel

PropertyDescriptionTypeDefault Value
qualityThe language qualityStringQuality
liveLive videoStringLive
captionsOffThe video captionsStringOff
chromeCastPlayingOnThe text that appears when chromecast is playing on a deviceStringChrome cast is playing on
subtitlesThe subtitles textStringSubtitles
autoplayThe auto play textStringAutoPlay
playbackRateThe playback rate textStringPlayback Rate
autoThe auto textStringAutomatike
autoPlayOffThe auto play off textStringAutoPlay Off
autoPlayOnThe auto play on textStringAutoPlay On
offThe off textStringOff
normalThe normal textStringNormal
shareThe share textStringShare
dismissThe dismiss textStringDismiss
zoomedToFillThe zoomed to fill textStringZoomed to fill
originalZoomThe original zoom textStringOriginal Zoom

SkinModel

PropertyDescription
controlBarThis config which is of the ControlBarModel type represents the conrol bar skin model.
menusThis config which is of the MenuModel type represents the settings menu skin model.
nextVideoThis config which is of the NextVideoModel type represents the next video skin model.
playlistThis config which is of the PlaylistSkinModel represents the playlist skin model.

ControlBarModel

PropertyDescription
textA string that is #FFFFFF by default, which allows you to set the color of the control bar text.
backgroundA string that is #FFFFFF by default, which allows you to set the color of the control bar background.
loaderColor A string that is #CC0000 by default, which allows you to set the color of the loader.
controlsBackgroundAlpha A float that is 0.45f by default, which allows you to set the opacity of the controls background.
iconsThis config which is of the IconsColorModel type represents the control bar icons model.
timesliderThis config which is of the TimeSliderModel type represents the control bar timeslider skin model.

IconsColorModel

PropertyDescription
defaultA string that is #FFFFFF by default, which allows you to set the default color of the icons.
hoverA string that is #FFFFFF by default, which allows you to set the hover color of the icons.

BackgroundColorModel

PropertyDescription
defaultA string that is #000000 by default, which allows you to set the default color of the background.
hoverA string that is #000000 by default, which allows you to set the hover color of the background.

LinksColorModel

PropertyDescription
defaultA string that is #FFFFFF by default, which allows you to set the default color of the links.
hoverA string that is #CC0000 by default, which allows you to set the hover color of the links.

TimeSliderModel

PropertyDescription
draggerA string that is #CC0000 by default, which allows you to set the color of the dragger time slider.
progressA string that is #CC0000 by default, which allows you to set the color of the progress time slider.
railA string that is #808080 by default, which allows you to set the color of the rail time slider.
bufferA string that is #E2E2E2 by default, which allows you to set the color of the buffer time slider.
PropertyDescription
backgroundThis config which is of the BackgroundColorModel type represents the menu background model.
linksThis config which is of the LinksColorModel type represents the links model.
autoplayThis config which is of the AutoPlayModel type represents the autoplay model.
iconsImagesThis config which is of the IconsImagesModel type represents the icons images model.
primaryTextFontThis config which is of the TypeFace type and is Museo 700 by default, represents the primary text fonts.
secondaryTextFontThis config which is of the TypeFace type and is Museo 500 by default, represents the secondary text fonts.

AutoPlayModel

PropertyDescription
autoplayOnA string that is #CC0000 by default, which allows you to set the color of the auto play on switch.
autoplayOffA string that is #A7A7A7 by default, which allows you to set the color of the auto play off switch.

IconsImagesModel

PropertyDescription
shareImageIconAn Int that is R.drawable.vp_share_icon by default, which represents the share image icon.
qualityImageIconAn Int that is R.drawable.vp_settings_icon by default, which represents the quality settings image icon.
subtitleImageIconAn Int that is R.drawable.vp_subtitles_icon by default, which represents the subtitles image icon.
cancelImageIconAn Int that is R.drawable.vp_close_image by default, which represents the cancel image icon.

NextVideoModel

PropertyDescriptionTypeDefault Value
backgroundNext video background colorString#000000
textNext video text colorString#FFFFFF
iconsNext video icons colorNextVideoIconsModelNextVideoIconsModel
cancelNext video cancel button colorButtonSkinModelButtonSkinModel
playNowNext video playNow button colorButtonSkinModelButtonSkinModel

NextVideoIconsModel

PropertyDescriptionTypeDefault Value
closeNext Video Close Icon ColorString#FFFFFF

ButtonSkinModel

PropertyDescriptionTypeDefault Value
textNext video button text colorString#FFFFFF
backgroundNext video button background colorString#FFFFFF

PlaylistSkinModel

PropertyDescriptionTypeDefault Value
backgroundPlaylist Background colorString#2E2E2E
textplaylist text colorString#FFFFFF
cardplaylist card colorCardModelCardModel

CardModel

PropertyDescriptionTypeDefault Value
backgroundPlaylist Card Background colorString#000000
titlePlaylist Card Title colorString#FFFFFF
durationPlaylist Duration Colors modelDurationModelDurationModel

DurationModel

PropertyDescriptionTypeDefault Value
textPlaylist Duration Text ColorString#FFFFFF
backgroundPlaylist Duration Background ColorString#1A1A1A