StreamConfig

class StreamConfig(var streamId: String, var authenticationToken: String? = null, var autoPlay: Boolean = false, var muted: Boolean = false, var poster: String? = null, var startTime: Double = 0.0, var loop: Boolean = false, var fullscreenConfig: FullscreenConfig, var subtitles: List<SubtitleTrack> = emptyList(), var streamListener: StreamListener? = null, var enableAds: Boolean = true, var styleConfig: StyleConfigStream = StyleConfigStream(), var allLogs: Boolean = false)

Configuration for the BitmovinStream.

See also

Constructors

Link copied to clipboard
constructor(streamId: String, authenticationToken: String? = null, autoPlay: Boolean = false, muted: Boolean = false, poster: String? = null, startTime: Double = 0.0, loop: Boolean = false, fullscreenConfig: FullscreenConfig = FullscreenConfig(), subtitles: List<SubtitleTrack> = emptyList(), onStreamReady: (Player, PlayerView) -> Unit = { _, _ -> }, onStreamError: (StreamError) -> Unit = { _ -> }, enableAds: Boolean = true, styleConfig: StyleConfigStream = StyleConfigStream(), allLogs: Boolean = false)

Configuration for the BitmovinStream

constructor(streamId: String, authenticationToken: String? = null, autoPlay: Boolean = false, muted: Boolean = false, poster: String? = null, startTime: Double = 0.0, loop: Boolean = false, fullscreenConfig: FullscreenConfig, subtitles: List<SubtitleTrack> = emptyList(), streamListener: StreamListener? = null, enableAds: Boolean = true, styleConfig: StyleConfigStream = StyleConfigStream(), allLogs: Boolean = false)

Properties

Link copied to clipboard

Whether all logs should be displayed.

Link copied to clipboard

The token to be used for authentication if the stream is protected.

Link copied to clipboard

Whether the player should start playing automatically.

Link copied to clipboard

Whether ads should be enabled.

Link copied to clipboard

The configuration for the fullscreen mode.

Link copied to clipboard

Whether the player should loop the stream.

Link copied to clipboard

Whether the player should be muted.

Link copied to clipboard

The poster image to be displayed before the player starts. This property has priority over the poster image from the dashboard.

Link copied to clipboard

The time in seconds at which the player should start playing.

Link copied to clipboard

The streamId of the stream to be played.

Link copied to clipboard

The listener for the player events.

Link copied to clipboard

The style configuration for the player. This property has priority over the style configuration from the dashboard.

Link copied to clipboard
var subtitles: List<SubtitleTrack>

The list of subtitle tracks available for the stream.