CaptionsCollection class

CaptionsCollection class

Represents a collection of the closed captions.

The CaptionsCollection type exposes the following members:

Properties

PropertyDescription
countReturns the number of elements in the collection.
Read-only int.

Returns the closed captions at the specified index. Read-only ICaptions.

Indexer

NameDescription
[index]

Methods

MethodDescription
add(self, label, file_path)Adds WebVTT closed captions to the end of the collection.
add(self, label, stream)Adds WebVTT closed captions to the end of the collection from a stream.
remove(self, captions)Removes the specified closed captions from the collection.
remove_at(self, index)Removes the closed captions at the specified index.
clear(self)Removes all closed captions from the collection.

See Also