BlazeMomentsPlayerStyle - Android
The BlazeMomentsPlayerStyle class represents the style configuration for moments.
Properties
headingText
var headingText: BlazeMomentsPlayerHeadingTextStyleThe heading text style for the moment.
bodyText
var bodyText: BlazeMomentsPlayerBodyTextStyleThe body text style for the moment.
buttons
var buttons: BlazeMomentsPlayerButtonsStyleThe buttons style for the moments.
Seek Controls
Note: Seek buttons are only visible when the content duration is 20 seconds or longer. For shorter content, the buttons are automatically hidden regardless of their visibility setting. Each press seeks by 10 seconds. Seek buttons are hidden during ad playback (
isVisibleForAdsdefaults tofalse).
seekForward - Skip forward 10 seconds
momentsPlayerStyle.buttons.seekForward.isVisible = trueseekBackward - Skip backward 10 seconds
momentsPlayerStyle.buttons.seekBackward.isVisible = truechips
var chips: BlazeMomentsPlayerChipsStyleThe chips style for the moments.
backgroundColor
var backgroundColor: IntThe background color of the moments player's view.
cta
var cta: BlazeMomentsPlayerCtaStyleThe CTA (Call to Action) button style for the moments.
headerGradient
var headerGradient: BlazeMomentsPlayerHeaderGradientStyleThe gradient style for the header moments view.
footerGradient
var footerGradient: BlazeMomentsPlayerFooterGradientStyleThe gradient style for the footer moments view.
firstTimeSlide
var firstTimeSlide: BlazeMomentsPlayerFirstTimeSlideStyleThe style configuration for the first-time slide screen.
seekBar
var seekBar: BlazeMomentsPlayerSeekBarStyleThe seek bar style configuration for the moments player.
bottomComponentsAlignment
var bottomComponentsAlignment: BlazeBottomComponentsAlignmentDefining the positioning style of a CTA and the other footer elements inside the player.
playerDisplayMode
var playerDisplayMode: BlazePlayerDisplayModeDefining the display mode of the player.
Read more here.
tabsConfigurations
var tabsConfigurations: BlazeMomentsTabsConfigurationsThe configurations for the tabs in the moments player.
followEntity
var followEntity: BlazeMomentsPlayerFollowEntityStyleThe Follow Entities style in the moments player
captions
var captions: BlazeCaptionsStyleThe closed captions style configuration for the moments player. See BlazeCaptionsStyle.
BlazeBottomComponentsAlignment
| Value | Description |
|---|---|
| RELATIVE_TO_CONTAINER | Indicates that the CTA and the rest of the elements will be placed relative to the screen's bottom anchor. |
| RELATIVE_TO_PLAYER | Indicates that the CTA and the rest of the elements will be placed relative to the player's bottom anchor. |
| FIT_CTA_BELOW_PLAYER | Indicates that the CTA will try to fit in the space between the player and the bottom of the screen. If there's no space it will fallback to RELATIVE_TO_PLAYER. In both cases the rest of the elements will be placed relative to the player's bottom anchor. |
BlazePlayerDisplayMode
| Value | Description |
|---|---|
FIXED_RATIO_9_16 | Maintains the video's original 9:16 aspect ratio, fitting it within the container. This may result in letterboxing if the container's aspect ratio differs. |
RESIZE_ASPECT_FILL_CENTER_CROP | Expands the video to cover the entire container, cropping excess content as necessary to maintain the aspect ratio, centered within the container. |
Updated 11 days ago
