Add

Add(string, string)

Adds WebVTT closed captions to the end of the collection.

public ICaptions Add(string label, string filePath)
ParameterTypeDescription
labelStringThe label of the closed captions.
filePathStringThe path to the WebVTT file.

Return Value

The added ICaptions instance.

Exceptions

exceptioncondition
ArgumentNullExceptionThrown if filePath is null.
ArgumentExceptionThrown if filePath is empty.

See Also


Add(string, Stream)

Adds WebVTT closed captions to the end of the collection from a stream.

public ICaptions Add(string label, Stream stream)
ParameterTypeDescription
labelStringThe label of the closed captions.
streamStreamThe input stream containing data in WebVTT format.

Return Value

The added ICaptions instance.

Exceptions

exceptioncondition
ArgumentNullExceptionThrown if stream is null.
ArgumentExceptionThrown if the input data is not in WebVTT format.

See Also