public class BrightcoveCaptionFormat
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
BrightcoveCaptionFormat.Builder
The Builder interface to store BrightcoveCaptionFormat data.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BRIGHTCOVE_SCHEME |
Modifier and Type | Method and Description |
---|---|
static BrightcoveCaptionFormat.Builder |
builder()
Creates a new builder for the BrightcoveCaptionFormat class.
|
static android.media.MediaFormat |
convertCaptionFormat(BrightcoveCaptionFormat format)
Converts a BrightcoveCaptionFormat object into a MediaFormat object, for use with the
Android 4.4+ caption methods.
|
static BrightcoveCaptionFormat |
createCaptionFormat(java.lang.String type,
java.lang.String language)
Creates a caption object which will encapsulate the formatting data into a BrightcoveCaptionFormat
object.
|
static BrightcoveCaptionFormat |
createCaptionFormat(java.lang.String type,
java.lang.String language,
java.lang.String label)
Creates a caption object which will encapsulate the formatting data into a BrightcoveCaptionFormat
object.
|
static android.util.Pair<android.net.Uri,BrightcoveCaptionFormat> |
findMatchingLanguageIgnoreMimeType(java.util.List<? extends android.util.Pair<android.net.Uri,BrightcoveCaptionFormat>> pairList,
BrightcoveCaptionFormat brightcoveCaptionFormat) |
boolean |
hasInBandMetadataTrackDispatchType()
The in band metadata track dispatch type for this caption object
|
boolean |
isDefault()
Specifies if this caption is set as the default
|
java.lang.String |
label()
The label property for this caption object
|
java.lang.String |
language()
The language code for this caption object
|
java.lang.String |
toString() |
java.lang.String |
type()
The mimetype for this caption object
|
void |
validate()
Validation method for quick error checking against input data.
|
public static final java.lang.String BRIGHTCOVE_SCHEME
public java.lang.String type()
public java.lang.String language()
public java.lang.String label()
public boolean hasInBandMetadataTrackDispatchType()
public boolean isDefault()
public static BrightcoveCaptionFormat createCaptionFormat(java.lang.String type, java.lang.String language)
type
- the caption mimetypelanguage
- the caption language codepublic static BrightcoveCaptionFormat createCaptionFormat(java.lang.String type, java.lang.String language, java.lang.String label)
type
- the caption mimetypelanguage
- the caption language codelabel
- the label propertypublic static android.media.MediaFormat convertCaptionFormat(BrightcoveCaptionFormat format)
format
- a BrightcoveCaptionFormat object with formatting data.public static BrightcoveCaptionFormat.Builder builder()
@NonNull public java.lang.String toString()
toString
in class java.lang.Object
public void validate()
@Nullable public static android.util.Pair<android.net.Uri,BrightcoveCaptionFormat> findMatchingLanguageIgnoreMimeType(java.util.List<? extends android.util.Pair<android.net.Uri,BrightcoveCaptionFormat>> pairList, BrightcoveCaptionFormat brightcoveCaptionFormat)