de.enough.polish.video
Class VideoMultipart

java.lang.Object
  extended by de.enough.polish.video.VideoMultipart

public class VideoMultipart
extends Object

Provides a storage for multiple video parts that are played as a whole in the VideoContainer

Author:
Andre Schmidt

Constructor Summary
VideoMultipart()
          Constructs a new VideoMultipart instance
 
Method Summary
 void addSource(VideoSource source)
          Adds a VideoSource instance to the storage
 void close()
          Closes all VideoSource instances in the storage
 boolean hasNext()
          Returns true if there are more VideoSource instances in the storage
 VideoSource next()
          Returns the next VideoSource instance in the storage
 void removeSource(VideoSource source)
          Removes a VideoSource instance from the storage
 void reset()
          Reset the current index to 0
 VideoSource source(int index)
          Returns the VideoSource instance at the given index
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VideoMultipart

public VideoMultipart()
Constructs a new VideoMultipart instance

Method Detail

addSource

public void addSource(VideoSource source)
Adds a VideoSource instance to the storage

Parameters:
source - the VideoSource instance

removeSource

public void removeSource(VideoSource source)
Removes a VideoSource instance from the storage

Parameters:
source - the VideoSource instance

source

public VideoSource source(int index)
Returns the VideoSource instance at the given index

Parameters:
index - the index
Returns:
the VideoSource instance

hasNext

public boolean hasNext()
Returns true if there are more VideoSource instances in the storage

Returns:
true if there are more VideoSource instances in the storage, otherwise false

next

public VideoSource next()
Returns the next VideoSource instance in the storage

Returns:
the next VideoSource instance

reset

public void reset()
Reset the current index to 0


close

public void close()
Closes all VideoSource instances in the storage