BrightcoveAdsPlayerBuilder

Provides extension to PlayerBuilder that builds a AdComposedPlayer instance that plays Brightcove curated streams with ads.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun adPlaybackPolicy(adPlaybackPolicy: AdPlaybackPolicy): <Error class: unknown class>

Sets the AdPlaybackPolicy instance that specifies the policy rules for Brightcove ads handling.

Link copied to clipboard
open override fun build(platformContext: <Error class: unknown class>): Player
Link copied to clipboard
suspend fun buildAsync(platformContext: <Error class: unknown class>, logger: Logger = defaultPlayerLogger): Result<BrightcovePlayer?, Error?>

Builds a BrightcovePlayer instance based on the supplied builder params.

Link copied to clipboard
Link copied to clipboard
fun dataCollectionConfig(dataCollectionConfig: BrightcoveDataCollectionConfig): <Error class: unknown class>

Sets the BrightcoveDataCollectionConfig that enables Brightcove Data Collection API v2 reporting. When set, the builder will create a DefaultBrightcoveDataCollectionAdapter and automatically start the session once the player is built.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun excludeMediaSession(excludeMediaSession: Boolean): PlayerBuilder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun palConfiguration(palConfiguration: PALConfiguration): <Error class: unknown class>

Sets the PALConfiguration instance that is used in the PALSession initialization.

Link copied to clipboard
fun playbackPolicyHandler(playbackPolicyHandler: PlaybackPolicyHandler): <Error class: unknown class>

Sets the PlaybackPolicyHandler instance that enforces the policy rules related to the content with Brightcove ads.

Link copied to clipboard
fun playbackPolicyHandlerListener(playbackPolicyHandlerListener: PlaybackPolicyHandler.Listener): <Error class: unknown class>

Sets the PlaybackPolicyHandler.Listener instance that provides the notification for ad playback policy related events.

Link copied to clipboard
Link copied to clipboard
fun preferredAudioMimeTypes(preferredAudioMimeTypes: Array<String>): PlayerBuilder
Link copied to clipboard
Link copied to clipboard
fun preferredVideoMimeTypes(preferredVideoMimeTypes: Array<String>): PlayerBuilder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun thumbnailPreviewProperties(thumbnailPreviewEndpointUrl: String, maxConcurrentThumbnailDownloads: Int?, thumbnailPreviewConfig: ThumbnailPreviewConfig?): PlayerBuilder
Link copied to clipboard
Link copied to clipboard
fun vmapURL(vmapURL: String): <Error class: unknown class>

Sets the URL to remote VMAP document that contains ads cue point metadata.