CaptionsCollection

CaptionsCollection class

Represents a collection of the closed captions.

add

NameDescription
add (String, String)Adds WebVTT closed captions at the end of the collection.

Parameters:

NameTypeDescription
labelStringLabel of the closed captions.
filePathStringPath to the file in WebVTT format.

Returns: Captions

Exception

ErrorCondition
ArgumentExceptionFile path is empty.

add

NameDescription
add (String, InputStream)Adds WebVTT closed captions at the end of the collection.

Parameters:

NameTypeDescription
labelStringLabel of the closed captions.
streamInputStreamInput stream with data in WebVTT format.

Returns: Captions

Exception

ErrorCondition
ArgumentExceptionInput data is not in the WebVTT format.

clear

NameDescription
clear ()Removes all elements from the collection.

Returns: void


getCount

NameDescription
getCount ()Returns the number of elements in the collection. Read-only int.

Returns: int


get_Item

NameDescription
get_Item (int)Returns the closed captions by index. Read-only ICaptions.

Returns: Captions


iterator

NameDescription
iterator ()Returns an enumerator that iterates through the collection.

Returns:


remove

NameDescription
remove (Captions)Removes the closed captions from the collection.

Parameters:

NameTypeDescription
captionsCaptionsCaptions object that should be deleted.

Returns: void


removeAt

NameDescription
removeAt (int)Removes the closed captions at the specified index.

Parameters:

NameTypeDescription
indexintIndex of the closed captions that should be deleted.

Returns: void