public class MP4JAudioTaggerManager extends java.lang.Object implements IMP4Manager
Constructor and Description |
---|
MP4JAudioTaggerManager() |
Modifier and Type | Method and Description |
---|---|
IAtom |
createArtworkAtomFromFile(MP4AtomKey key,
java.io.File artworkFile) |
IAtom |
createAtom(MP4AtomKey name,
boolean value) |
IAtom |
createAtom(MP4AtomKey name,
int value) |
IAtom |
createAtom(MP4AtomKey name,
MP4ArtworkType type,
int size,
byte[] data) |
IAtom |
createAtom(MP4AtomKey name,
short number,
short total) |
IAtom |
createAtom(MP4AtomKey name,
java.lang.String value) |
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)
Used to setup the manager
|
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 string,
java.lang.String mp4infoPath)
Used to set parameters on the manager
|
boolean |
supportedAtom(IAtom atom) |
void |
update(java.io.File mp4File,
java.util.List<IAtom> atoms) |
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 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 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
IMP4Manager
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
public void update(java.io.File mp4File, java.util.List<IAtom> atoms) throws MP4Exception
MP4Exception
public IAtom createAtom(MP4AtomKey name, java.lang.String value)
public IAtom createAtom(MP4AtomKey name, short number, short total)
public IAtom createAtom(MP4AtomKey name, int value)
public IAtom createAtom(MP4AtomKey name, MP4ArtworkType type, int size, byte[] data)
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 setup up the managerpublic void setParameter(java.lang.String string, java.lang.String mp4infoPath)
setParameter
in interface IMP4Manager
string
- The key of the parametermp4infoPath
- The name of the parameterpublic IAtom createAtom(MP4AtomKey name, boolean value)
public IAtom createArtworkAtomFromFile(MP4AtomKey key, java.io.File artworkFile) throws java.io.IOException
java.io.IOException
public boolean supportedAtom(IAtom atom)