ISdkSettings
@blings/blings-player / ISdkSettings
Interface: ISdkSettings
Properties
analyticsConfig?
optionalanalyticsConfig:IAnalyticsConfigAbstract
autoFocus?
optionalautoFocus:boolean
should player be auto focused
autoFullScreen?
optionalautoFullScreen:boolean
on first play, should the video go to full screen (note: full screen is not supported in iphone) @default: false
autoplay?
optionalautoplay:number|boolean
should the video start automatically or after pressing a button. NOTE: starting with autoplay might start the video muted according to browser's policy see: https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
autoReplay?
optionalautoReplay:boolean
should video start automatically to replay once completed
avoidErrorTracking?
optionalavoidErrorTracking:boolean
bgColor?
optionalbgColor:string
cinematic?
optionalcinematic:boolean
set to true to change the webpage to black background with the movie centered
colors?
optionalcolors:object
colors for the player skin and background.
bg?
optionalbg:string
ctrlBtns?
optionalctrlBtns:string
loader?
optionalloader:string
progress?
optionalprogress:string
rail?
optionalrail:string
thumb?
optionalthumb:string
container
container:
HTMLElement
which webpage element will contain the video
ctrlBtnsColor?
optionalctrlBtnsColor:string
debugLevel?
optionaldebugLevel:number
The level of debug messages to show in the console. None = 0, Error = 1, Warning = 2, Info = 3, Verbose = 4,
debugMode?
optionaldebugMode:boolean
enable debug mode - showing info on the player.
errorTracking?
optionalerrorTracking:boolean
Send or not errors to Sentry *
experimentOptimizationTechnique?
optionalexperimentOptimizationTechnique:OptimizationType
experiments?
optionalexperiments:ISettingsExperiment[]
Possible experiments for the player settings. This can be defined on the player settings when creating the player
Default
undefinedExample
settings: {
experiments: [
{
id: "autoplay",
variants: [{ id: 1, value: "true" }, { id: 2, value: "false" }]
}
]fontOverrides?
optionalfontOverrides:IFontOverride
hideCover?
optionalhideCover:boolean
Whether to hide the cover of the video after the video is loaded and ready to play
Default
falsehideFullScreenBtn?
optionalhideFullScreenBtn:boolean
show / hide full screen toggle button (note: full screen is not supported in iphone)
identifier?
optionalidentifier:string
isCyclic?
optionalisCyclic:boolean
stories cyclic - back to start at the end
loaderColor?
optionalloaderColor:string
Deprecated
use
colorscolors for the loading spinner and the play/pause buttons.
loadingImage?
optionalloadingImage:string
Image to show during the loading
loadingText?
optionalloadingText:string
Text to show during the loading of the video *
maxLoadingTime?
optionalmaxLoadingTime:number
Timeout for asset loading in ms
muted?
optionalmuted:boolean
should the video start muted or not
overlay?
optionaloverlay:IOverlay
posterFrame?
optionalposterFrame:number
which frame from the movie should be presented before playback
rightToLeft?
optionalrightToLeft:boolean
stories from right to left instead of left to right - for hebrew
sendUtmParams?
optionalsendUtmParams:boolean
if true, do not save utm params in analytics
showBlingsLogo?
optionalshowBlingsLogo:number
showStoriesModeIndicators?
optionalshowStoriesModeIndicators:boolean
Short animation that explains the UI of stories
showStoriesModeIndicatorsText?
optionalshowStoriesModeIndicatorsText:boolean
Show text in short animation that explains the UI of stories
showTimeline?
optionalshowTimeline:boolean
whether to show a timeline-bar
startFrame?
optionalstartFrame:number
The frame to start the video at
Default
0storiesMode?
optionalstoriesMode:boolean
an "instagram" style stories instead for video timeline
Last updated