-
public class BrightcoveCaptionFormat
A class for describing the format options of a caption source.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
BrightcoveCaptionFormat.Builder
The Builder interface to store BrightcoveCaptionFormat data.
-
Field Summary
Fields Modifier and Type Field Description public final static String
BRIGHTCOVE_SCHEME
private boolean
isDefault
-
Method Summary
Modifier and Type Method Description boolean
isDefault()
Specifies if this caption is set as the default String
type()
The mimetype for this caption object String
language()
The language code for this caption object String
label()
The label property for this caption object boolean
hasInBandMetadataTrackDispatchType()
The in band metadata track dispatch type for this caption object String
getFormattedLabel()
Get the label or the display language (if the label is a language code or empty). static BrightcoveCaptionFormat
createCaptionFormat(String type, String language)
Creates a caption object which will encapsulate the formatting data into a BrightcoveCaptionFormatobject. static BrightcoveCaptionFormat
createCaptionFormat(String type, String language, String label)
Creates a caption object which will encapsulate the formatting data into a BrightcoveCaptionFormatobject. static MediaFormat
convertCaptionFormat(BrightcoveCaptionFormat format)
Converts a BrightcoveCaptionFormat object into a MediaFormat object, for use with theAndroid 4.4+ caption methods. static BrightcoveCaptionFormat.Builder
builder()
Creates a new builder for the BrightcoveCaptionFormat class. String
toString()
void
validate()
Validation method for quick error checking against input data. static Pair<Uri, BrightcoveCaptionFormat>
findMatchingLanguageIgnoreMimeType(List<out Pair<Uri, BrightcoveCaptionFormat>> pairList, BrightcoveCaptionFormat brightcoveCaptionFormat)
-
-
Method Detail
-
isDefault
boolean isDefault()
Specifies if this caption is set as the default
-
hasInBandMetadataTrackDispatchType
boolean hasInBandMetadataTrackDispatchType()
The in band metadata track dispatch type for this caption object
-
getFormattedLabel
String getFormattedLabel()
Get the label or the display language (if the label is a language code or empty).
-
createCaptionFormat
static BrightcoveCaptionFormat createCaptionFormat(String type, String language)
Creates a caption object which will encapsulate the formatting data into a BrightcoveCaptionFormatobject.
- Parameters:
type
- the caption mimetypelanguage
- the caption language code
-
createCaptionFormat
static BrightcoveCaptionFormat createCaptionFormat(String type, String language, String label)
Creates a caption object which will encapsulate the formatting data into a BrightcoveCaptionFormatobject.
- Parameters:
type
- the caption mimetypelanguage
- the caption language codelabel
- the label property
-
convertCaptionFormat
static MediaFormat convertCaptionFormat(BrightcoveCaptionFormat format)
Converts a BrightcoveCaptionFormat object into a MediaFormat object, for use with theAndroid 4.4+ caption methods.
- Parameters:
format
- a BrightcoveCaptionFormat object with formatting data.
-
builder
static BrightcoveCaptionFormat.Builder builder()
Creates a new builder for the BrightcoveCaptionFormat class.
-
validate
void validate()
Validation method for quick error checking against input data.
-
findMatchingLanguageIgnoreMimeType
@Nullable() static Pair<Uri, BrightcoveCaptionFormat> findMatchingLanguageIgnoreMimeType(List<out Pair<Uri, BrightcoveCaptionFormat>> pairList, BrightcoveCaptionFormat brightcoveCaptionFormat)
-
-
-
-