BlazeVideosInlinePreviewPlayerButtonsStyle - iOS
The BlazeVideosInlinePreviewPlayerButtonsStyle struct defines the styling for the buttons displayed in the preview mode of the video player. This style focuses on minimal controls appropriate for a preview experience.

Preview mode displays only essential buttonsIn preview mode, typically only a few buttons like mute and replay are visible to maintain a clean, minimal interface.
Properties
The BlazeVideosInlinePreviewPlayerButtonsStyle provides properties to configure the appearance of buttons in preview mode.
mute
public var mute: BlazeVideosPlayerButtonStyleStyle configuration for the mute/unmute button. This button toggles audio playback and is one of the few controls typically visible in preview mode.
Default value: Visible button with appropriate styling for preview mode
replay
public var replay: BlazeVideosPlayerButtonStyleStyle configuration for the replay button that appears when a video ends. This button allows users to restart the video without entering fullscreen mode.
Default value: Visible button with appropriate styling for preview mode
Example Usage
// Get the base style
var previewStyle = BlazeVideosInlinePreviewPlayerStyle.base()
// Customize mute button
previewStyle.buttons.mute.color = UIColor.white
previewStyle.buttons.mute.width = 36
previewStyle.buttons.mute.height = 36
previewStyle.buttons.mute.isVisible = true
// Customize replay button
previewStyle.buttons.replay.color = UIColor.systemOrange
previewStyle.buttons.replay.width = 40
previewStyle.buttons.replay.height = 40
previewStyle.buttons.replay.isVisible = true
// Apply to player mode
let playerMode = BlazeVideosInlinePlayer.PlayerMode.preview(
previewPlayerStyle: previewStyle
)Updated 11 days ago
