add method
Contents
[
Hide
]add
Adds WebVTT closed captions to the end of the collection.
Returns
The added ICaptions instance.
def add(self, label, file_path):
...
| Parameter | Type | Description |
|---|---|---|
| label | str | The label of the closed captions. |
| file_path | str | The path to the WebVTT file. |
Exceptions
| Exception | Description |
|---|---|
| RuntimeError(Proxy error(ArgumentNullException)) | Thrown if file_path is None. |
| RuntimeError(Proxy error(ArgumentException)) | Thrown if file_path is empty. |
add
Adds WebVTT closed captions to the end of the collection from a stream.
Returns
The added ICaptions instance.
def add(self, label, stream):
...
| Parameter | Type | Description |
|---|---|---|
| label | str | The label of the closed captions. |
| stream | io.RawIOBase | The input stream containing data in WebVTT format. |
Exceptions
| Exception | Description |
|---|---|
| RuntimeError(Proxy error(ArgumentNullException)) | Thrown if stream is None. |
| RuntimeError(Proxy error(ArgumentException)) | Thrown if the input data is not in WebVTT format. |
See Also
- class
ICaptions - class
ICaptionsCollection - module
aspose.slides - library
Aspose.Slides