Maven module :un.storage : media-mpeg4 :
Class : un.storage.media.mp4.api.Movie
Extends/Implements : -
Subclasses : -

author  Alexander Simm


Variables : -
Functions : Movie, getTracks, getTracks, getTracks, containsMetaData, getMetaData, getProtections, getCreationTime, getModificationTime, getDuration, hasMoreFrames, readNextFrame



public void Movie (Box moov, MP4InputStream in)


Returns an unmodifiable list of all tracks in this movie. The tracks are
ordered as they appeare in the file/stream.
return  the tracks contained by this movie
public List getTracks ()


Returns an unmodifiable list of all tracks in this movie with the
specified type. The tracks are ordered as they appeare in the
file/stream.
return  the tracks contained by this movie with the passed type
public List getTracks (Type type)


Returns an unmodifiable list of all tracks in this movie whose samples
are encoded with the specified codec. The tracks are ordered as they
appeare in the file/stream.
return  the tracks contained by this movie with the passed type
public List getTracks (Track.Codec codec)


Indicates if this movie contains metadata. If false the MetaData
object returned by getMetaData() will not contain any field.
return  true if this movie contains any metadata
public boolean containsMetaData ()


Returns the MetaData object for this movie.
return  the MetaData for this movie
public MetaData getMetaData ()


Returns the ProtectionInformation objects that contains
details about the DRM systems used. If no protection is present the
returned list will be empty.
return  a list of protection informations
public List getProtections ()


Returns the time this movie was created.
return  the creation time
public Date getCreationTime ()


Returns the last time this movie was modified.
return  the modification time
public Date getModificationTime ()


Returns the duration in seconds.
return  the duration
public double getDuration ()


Indicates if there are more frames to be read in this movie.
return  true if there is at least one track in this movie that has at least one more frame to read.
public boolean hasMoreFrames ()


Reads the next frame from this movie (from one of the contained tracks).
The frame is the next in time-order, thus the next for playback. If none
of the tracks contains any more frames, null is returned.
return  the next frame or null if there are no more frames to read from this movie.
throws  IOException if reading fails
public Frame readNextFrame ()