public class Movie
extends java.lang.Object
Constructor and Description |
---|
Movie(Box moov,
MP4InputStream in) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsMetaData()
Indicates if this movie contains metadata.
|
java.util.Date |
getCreationTime()
Returns the time this movie was created.
|
double |
getDuration()
Returns the duration in seconds.
|
MetaData |
getMetaData()
Returns the MetaData object for this movie.
|
java.util.Date |
getModificationTime()
Returns the last time this movie was modified.
|
java.util.List<Protection> |
getProtections()
Returns the
ProtectionInformation objects that contains
details about the DRM systems used. |
java.util.List<Track> |
getTracks()
Returns an unmodifiable list of all tracks in this movie.
|
java.util.List<Track> |
getTracks(Track.Codec codec)
Returns an unmodifiable list of all tracks in this movie whose samples
are encoded with the specified codec.
|
java.util.List<Track> |
getTracks(Type type)
Returns an unmodifiable list of all tracks in this movie with the
specified type.
|
boolean |
hasMoreFrames()
Indicates if there are more frames to be read in this movie.
|
Frame |
readNextFrame()
Reads the next frame from this movie (from one of the contained tracks).
|
public Movie(Box moov, MP4InputStream in)
public java.util.List<Track> getTracks()
public java.util.List<Track> getTracks(Type type)
public java.util.List<Track> getTracks(Track.Codec codec)
public boolean containsMetaData()
MetaData
object returned by getMetaData()
will not contain any field.public MetaData getMetaData()
public java.util.List<Protection> getProtections()
ProtectionInformation
objects that contains
details about the DRM systems used. If no protection is present the
returned list will be empty.public java.util.Date getCreationTime()
public java.util.Date getModificationTime()
public double getDuration()
public boolean hasMoreFrames()
public Frame readNextFrame() throws java.io.IOException
java.io.IOException
- if reading fails