BrightcoveCaptionFormat

A class for describing the format options of a caption source.

Author

Billy Hnath (bhnath@brightcove.com)

Jim Whisenant (jwhisenant@brightcove.com) - refactoring to better support adding new properties without their being automatically required

Types

Link copied to clipboard
open class Builder
The Builder interface to store BrightcoveCaptionFormat data.

Properties

Link copied to clipboard
val BRIGHTCOVE_SCHEME: String = "brightcove://"
Link copied to clipboard
open val isDefault: Boolean

Functions

Link copied to clipboard
Creates a new builder for the BrightcoveCaptionFormat class.
Link copied to clipboard
open fun createCaptionFormat(type: String, language: String, label: String): BrightcoveCaptionFormat
Creates a caption object which will encapsulate the formatting data into a BrightcoveCaptionFormat object.
Link copied to clipboard
open fun findMatchingLanguageIgnoreMimeType(pairList: List<out Pair<Uri, BrightcoveCaptionFormat>>, brightcoveCaptionFormat: BrightcoveCaptionFormat): Pair<Uri, BrightcoveCaptionFormat>
Link copied to clipboard
Get the label or the display language (if the label is a language code or empty).
Link copied to clipboard
The in band metadata track dispatch type for this caption object
Link copied to clipboard
open fun label(): String
The label property for this caption object
Link copied to clipboard
open fun language(): String
The language code for this caption object
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun type(): String
The mimetype for this caption object
Link copied to clipboard
open fun validate()
Validation method for quick error checking against input data.