GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeMomentsPlaybackConfiguration - Android

The BlazeMomentsPlaybackConfiguration represents the playback configuration for a Moments player.

This class applies only to Moments domain.

Parameters

  • loopBehavior: BlazeMomentsLoopBehavior - Defines the looping behavior for moments.
  • bufferingSpinnerDelayMs: Long - The delay in milliseconds before the buffering spinner becomes visible. Default: 1000 ms.
sealed interface BlazeMomentsLoopBehavior {
  	/**
     * Loop the moment infinitely without auto-advancing.
     * This is the default behavior that preserves backward compatibility.
     */
  data object InfiniteLoop : BlazeMomentsLoopBehavior

	 /**
     * Play the moment a specified number of times, then auto-advance to the next moment.
     * 
     * @param numberOfPlays The number of times to play the moment before auto-advancing.
     *                      - 1 means play once then auto-advance immediately
     *                      - 2 means play twice then auto-advance
     *                      - 3 means play three times then auto-advance
     *                      - etc.
     */
    data class LoopAndAdvance(val numberOfPlays: Int) : BlazeMomentsLoopBehavior
}

bufferingSpinnerDelayMs

The delay in milliseconds before the buffering spinner becomes visible during playback.

If the player finishes buffering before this threshold elapses, the spinner is never shown.

  • Default: 1000 ms
  • Type: Long
  • Min: 0 (spinner appears immediately on buffering)
val config = BlazeMomentsPlaybackConfiguration.base().apply {
    bufferingSpinnerDelayMs = 500L
}
BlazeSDK.setDefaultMomentsPlaybackConfiguration(config)

Did this page help you?