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

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

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

Builds a BrightcovePlayer instance based on the supplied builder params.

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, allowPALSessionDataStorage: Boolean = false): BrightcoveAdsPlayerBuilder

Sets the PALConfiguration instance that is used in the PALSession initialization. Optionally sets the permission to store user data like cookies, device IDs, and advertising IDs when using PALSession calls. If the value is Boolean.true the user gives the consent to store data. The default value is Boolean.false - no consent.

Link copied to clipboard

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

Link copied to clipboard

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
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

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