GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeVideosPlayerStatusIndicatorStyle

BlazeVideosPlayerStatusIndicatorStyle configures the status indicator chip (LIVE / UPCOMING / ENDED) shown in the Videos player for live streams. It is available on BlazeVideosPlayerStyle.statusIndicator.

📘

Style structs have no public initializer. Get the base style from BlazeVideosPlayerStyle.base(), modify the properties you need, and apply it (for example, with Blaze.shared.setDefaultVideosPlayerStyle(_:)). See Live streaming for the feature overview.

var playerStyle = BlazeVideosPlayerStyle.base()
playerStyle.statusIndicator.streamStates.liveStreamState.backgroundColor = .systemRed
playerStyle.statusIndicator.streamStates.liveStreamState.text = "ON AIR"
Blaze.shared.setDefaultVideosPlayerStyle(playerStyle)

Properties

isVisible

var isVisible: Bool

Whether the status indicator is visible. Default: true.

padding

var padding: NSDirectionalEdgeInsets

The padding between the chip text and its container. Default: top: 4, leading: 8, bottom: 4, trailing: 8.

streamStates

var streamStates: BlazeVideosPlayerStatusIndicatorStreamStatesStyle

The per-state chip styling. BlazeVideosPlayerStatusIndicatorStreamStatesStyle groups three BlazeVideosPlayerStatusIndicatorStateStyle objects:

  • liveStreamState — while a stream is broadcasting.
  • upcomingStreamState — while a stream is scheduled but not started.
  • endedStreamState — once a stream has finished.

BlazeVideosPlayerStatusIndicatorStateStyle

Each stream state is a BlazeVideosPlayerStatusIndicatorStateStyle:

PropertyTypeDescription
textStyleBlazeVideosPlayerTextStyleText size, color, and font of the chip label.
isVisibleBoolWhether this state's chip is shown.
backgroundColorUIColorChip background color.
backgroundImageUIImage?Optional chip background image.
textStringThe chip label text.
cornerRadiusCGFloatChip corner radius.
cornerRadiusRatioCGFloat?0.0–1.0 ratio that computes the final corner radius, overriding cornerRadius.
borderColorUIColorChip border color.
borderWidthCGFloatChip border width.

BlazeVideosPlayerTextStyle exposes textSize: CGFloat, textColor: UIColor, and font: UIFont?.

Default values

StatetextbackgroundColortext colortext sizecornerRadiusRatio
liveStreamStateLIVE#FF3131#F0F0F0120.5
upcomingStreamStateUPCOMING#FFFFFF#4E5053120.5
endedStreamStateENDED#404040#F0F0F0120.5

Style-level defaults: isVisible = true, padding = (4, 8, 4, 8). All states default to borderWidth = 0 with a .clear border.


Did this page help you?