public interface ICaptionsCollection extends com.aspose.ms.System.Collections.Generic.IGenericEnumerable<ICaptions>
Represents a collection of the closed captions.
| Modifier and Type | Method and Description |
|---|---|
ICaptions |
add(java.lang.String label,
java.io.InputStream stream)
Adds WebVTT closed captions to the end of the collection from a stream.
|
ICaptions |
add(java.lang.String label,
java.lang.String filePath)
Adds WebVTT closed captions to the end of the collection.
|
void |
clear()
Removes all closed captions from the collection.
|
ICaptions |
get_Item(int index)
Returns the closed captions at the specified index.
|
int |
getCount()
Returns the number of elements in the collection.
|
void |
remove(ICaptions captions)
Removes the specified closed captions from the collection.
|
void |
removeAt(int index)
Removes the closed captions at the specified index.
|
ICaptions get_Item(int index)
Returns the closed captions at the specified index.
Read-only ICaptions.
ICaptions add(java.lang.String label, java.lang.String filePath)
Adds WebVTT closed captions to the end of the collection.
label - The label of the closed captions.filePath - The path to the WebVTT file.ICaptions instance.com.aspose.ms.System.ArgumentNullException - Thrown if filePath is null.com.aspose.ms.System.ArgumentException - Thrown if } is empty.ICaptions add(java.lang.String label, java.io.InputStream stream)
Adds WebVTT closed captions to the end of the collection from a stream.
label - The label of the closed captions.stream - The input stream containing data in WebVTT format.ICaptions instance.com.aspose.ms.System.ArgumentNullException - Thrown if stream is null.com.aspose.ms.System.ArgumentException - Thrown if the input data is not in WebVTT format.void remove(ICaptions captions)
Removes the specified closed captions from the collection.
captions - The closed captions to remove.void removeAt(int index)
Removes the closed captions at the specified index.
index - The index of the closed captions to remove.void clear()
Removes all closed captions from the collection.
int getCount()
Returns the number of elements in the collection.
Read-only int.
Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.