SSAIComponent

open class SSAIComponent

Provide a class to support the Brightcove Server Side Ad Insertion (SSAI) functionality.

Author

Sergio Martinez - smartinez@brightcove.com

Constructors

Link copied to clipboard
constructor(context: Context, baseVideoView: BaseVideoView)
SSAIComponent
constructor(context: Context, baseVideoView: BaseVideoView, connectTimeout: Int, readTimeout: Int)
SSAIComponent

Functions

Link copied to clipboard
open fun addCompanionContainer(companionContainer: ViewGroup)
Add an additional companion ad container.
Link copied to clipboard
Clear all companion ad containers currently being used in the plugin.
Link copied to clipboard
open fun processAndStartVideo(video: Video)
Process a video that has a VMAP url in at least one of its sources, and then play it.
Link copied to clipboard
open fun processVideo(video: Video)
Process a video that has a VMAP url in at least one if its sources.
open fun processVideo(adData: String)
Process a video given an ad metadata URL and a content URL.
open fun processVideo(vmapXMLString: String, remoteLicenseUrl: String)
Process a video given an ad metadata VMAP XML.
Link copied to clipboard
open fun removeListeners()
Link copied to clipboard
open fun setNonce(nonce: String)
Set the nonce for the Programmatic Access Library to the VMAP request.
Link copied to clipboard
open fun start()
This method is used to autostart playback.
Link copied to clipboard
open fun updateAdTargetingValues(adTargetingValues: Map<String, String>)
Updates the key/value pairs used for audience segment targeting.