public class MP4AtomicParsleyManager extends java.lang.Object implements IMP4Manager
Constructor and Description |
---|
MP4AtomicParsleyManager() |
Modifier and Type | Method and Description |
---|---|
protected void |
genericAtoms(IMediaFileInfo info,
java.util.List<IAtom> atoms,
java.lang.String flavour) |
protected IAtom |
getArtworkAtom(java.io.File mp4File,
IVideo video) |
void |
init(java.io.File nativeDir)
This checks that the stores system commands can be found before the store is used.
|
java.util.List<IAtom> |
listAtoms(java.io.File mp4File)
Used to get a list of atoms in the MP4 file.
|
void |
setParameter(java.lang.String key,
java.lang.String value)
Used to set the managers parameters.
|
void |
updateEpsiode(Controller controller,
java.io.File mp4File,
IEpisode episode)
Used to add atoms to a MP4 file that makes iTunes see it as a TV Show episode
|
void |
updateFilm(Controller controller,
java.io.File mp4File,
IFilm film,
java.lang.Integer part)
Used to add atoms to a MP4 file that makes iTunes see it as a Film.
|
public void init(java.io.File nativeDir) throws MP4Exception
init
in interface IMP4Manager
nativeDir
- The native folder been used or configured. Null if can't be foundMP4Exception
- Thrown if their is a problem locating the commandspublic java.util.List<IAtom> listAtoms(java.io.File mp4File) throws MP4Exception
listAtoms
in interface IMP4Manager
mp4File
- The MP4 fileMP4Exception
- Thrown if their is a problem reading the MP4 filepublic void setParameter(java.lang.String key, java.lang.String value)
Used to set the managers parameters.
This manager has following optional parameters:
setParameter
in interface IMP4Manager
key
- The name of the parametervalue
- The value of the parameterpublic void updateEpsiode(Controller controller, java.io.File mp4File, IEpisode episode) throws MP4Exception
updateEpsiode
in interface IMP4Manager
controller
- the media file controllermp4File
- The MP4 fileepisode
- The episode detailsMP4Exception
- Thrown if their is a problem updating the atomsprotected void genericAtoms(IMediaFileInfo info, java.util.List<IAtom> atoms, java.lang.String flavour)
public void updateFilm(Controller controller, java.io.File mp4File, IFilm film, java.lang.Integer part) throws MP4Exception
updateFilm
in interface IMP4Manager
controller
- The media controllermp4File
- The MP4 filefilm
- The film detailspart
- The part number of the film, or null if it does not have partsMP4Exception
- Thrown if their is a problem updating the atomsprotected IAtom getArtworkAtom(java.io.File mp4File, IVideo video) throws MP4Exception
MP4Exception