VideoCollection
Inheritance: java.lang.Object, com.aspose.slides.DomObject
All Implemented Interfaces: com.aspose.slides.IVideoCollection
public class VideoCollection extends DomObject<Presentation> implements IVideoCollection
Represents a collection of Video objects.
Methods
Method | Description |
---|---|
size() | Returns a number of video files in the collection. |
get_Item(int index) | Gets the element at the specified index. |
addVideo(IVideo video) | Adds a copy of an video file from an another presentation. |
addVideo(InputStream stream, int loadingStreamBehavior) | Creates and adds a video to a presentation from stream. |
addVideo(byte[] videoData) | Creates and adds a video to a presentation from byte array. |
copyTo(System.Array array, int index) | Copies videos to specified array starting from specified index. |
isSynchronized() | Returns a value indicating whether access to the collection is synchronized (thread-safe). |
getSyncRoot() | Returns a synchronization root. |
iterator() | Returns an enumerator that iterates through the collection. |
iteratorJava() | Returns a java iterator for the entire collection. |
size()
public final int size()
Returns a number of video files in the collection. Read-only int.
Returns: int
get_Item(int index)
public final IVideo get_Item(int index)
Gets the element at the specified index. Read-only IVideo.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int |
Returns: IVideo
addVideo(IVideo video)
public final IVideo addVideo(IVideo video)
Adds a copy of an video file from an another presentation.
Parameters:
Parameter | Type | Description |
---|---|---|
video | IVideo | Source video. |
Returns: IVideo - Added video.
addVideo(InputStream stream, int loadingStreamBehavior)
public final IVideo addVideo(InputStream stream, int loadingStreamBehavior)
Creates and adds a video to a presentation from stream.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.InputStream | Stream to add video file from. |
loadingStreamBehavior | int | The behavior which will be applied to the stream. |
Returns: IVideo - Added IVideo.
addVideo(byte[] videoData)
public final IVideo addVideo(byte[] videoData)
Creates and adds a video to a presentation from byte array.
Parameters:
Parameter | Type | Description |
---|---|---|
videoData | byte[] | Video bytes. |
Returns: IVideo - Added video.
copyTo(System.Array array, int index)
public final void copyTo(System.Array array, int index)
Copies videos to specified array starting from specified index.
Parameters:
Parameter | Type | Description |
---|---|---|
array | com.aspose.ms.System.Array | Array. |
index | int | Index. |
isSynchronized()
public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.
Returns: boolean
getSyncRoot()
public final Object getSyncRoot()
Returns a synchronization root. Read-only Object.
Returns: java.lang.Object
iterator()
public final System.Collections.Generic.IGenericEnumerator<IVideo> iterator()
Returns an enumerator that iterates through the collection.
Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.IVideo> - A IGenericEnumerator that can be used to iterate through the collection.
iteratorJava()
public final System.Collections.Generic.IGenericEnumerator<IVideo> iteratorJava()
Returns a java iterator for the entire collection.
Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.IVideo> - An java.util.Iterator for the entire collection.