VideoUtil

class VideoUtil

An Video utility class to perform tasks with Brightcove video objects.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun addCaptions(video: Video, languageCodeCaptionsMap: Map<String, String>): Boolean
Adds the CAPTION_SOURCES video property with the languageCodeCaptionsMap, if and on only if, the CAPTION_SOURCES doesn't exist.
Link copied to clipboard
Queries the CAPTION_SOURCES Video property, and builds a Map of language/label references.
Link copied to clipboard
open fun addWatermarkingToken(video: Video, token: String)
Add a watermarking token to this video's sources if a placeholder is present
Link copied to clipboard
open fun checkDolbyAtmosSources(video: Video)
If device does not support Dolby Atmos features, then filter related Source, only if it is Mpeg-DASH
Link copied to clipboard
open fun filterSourcesOnDeliveryType(video: Video, deliveryTypeFilter: DeliveryType)
Filter this Video's SourceCollections to include only the specified DeliveryType
Link copied to clipboard
Utility method to check if closed captions are enabled.
Link copied to clipboard
open fun isManifestTtlValid(video: Video): Boolean
Determine whether the video has the following properties: Video.Fields.MANIFEST_URL_TTL Video.Fields.
Link copied to clipboard
Removes existing Sidecar Captions Sources because they are likely not aligned with the Ad breaks in the VMAP for SSAI videos.
Link copied to clipboard
Utility method to toggle the closed captions.