public class VideoCollection extends java.lang.Object implements IVideoCollection
Represents a collection of Video objects.
| Modifier and Type | Method and Description |
|---|---|
IVideo |
addVideo(byte[] videoData)
Creates and adds a video to a presentation from byte array.
|
IVideo |
addVideo(java.io.InputStream stream)
Creates and adds a video to a presentation from stream.
|
IVideo |
addVideo(java.io.InputStream stream,
int loadingStreamBehavior)
Creates and adds a video to a presentation from stream.
|
IVideo |
addVideo(IVideo video)
Adds a copy of an video file from an another presentation.
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies videos to specified array starting from specifyed index.
|
IVideo |
get_Item(int index)
Gets the element at the specified index.
|
com.aspose.slides.IDOMObject |
getParent_Immediate()
Returns Parent_Immediate object.
|
java.lang.Object |
getSyncRoot()
Returns a synchronization root.
|
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IVideo> |
iterator()
Returns an enumerator that iterates through the collection.
|
int |
size()
Returns a number of video files in the collection.
|
public final int size()
Returns a number of video files in the collection.
Read-only int.
size in interface com.aspose.ms.System.Collections.ICollection<IVideo>public final IVideo get_Item(int index)
Gets the element at the specified index.
Read-only IVideo.
get_Item in interface IVideoCollectionpublic final IVideo addVideo(IVideo video)
Adds a copy of an video file from an another presentation.
addVideo in interface IVideoCollectionvideo - Source video.public final IVideo addVideo(java.io.InputStream stream)
Creates and adds a video to a presentation from stream.
addVideo in interface IVideoCollectionstream - Stream to add video file from.Video.public final IVideo addVideo(java.io.InputStream stream, int loadingStreamBehavior)
Creates and adds a video to a presentation from stream.
addVideo in interface IVideoCollectionstream - Stream to add video file from.loadingStreamBehavior - The behavior which will be applied to the stream.IVideo.public final IVideo addVideo(byte[] videoData)
Creates and adds a video to a presentation from byte array.
addVideo in interface IVideoCollectionvideoData - Video bytes.public final void copyTo(com.aspose.ms.System.Array array,
int index)
Copies videos to specified array starting from specifyed index.
copyTo in interface com.aspose.ms.System.Collections.ICollection<IVideo>array - Array.index - Index.public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
Read-only boolean.
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<IVideo>public final java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object.
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<IVideo>public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IVideo> iterator()
Returns an enumerator that iterates through the collection.
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IVideo>iterator in interface com.aspose.ms.System.Collections.IEnumerable<IVideo>iterator in interface java.lang.Iterable<IVideo>System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject.