Package org.mp4parser.muxer
Class PiffMp4TrackImpl
- java.lang.Object
-
- org.mp4parser.muxer.AbstractTrack
-
- org.mp4parser.muxer.Mp4TrackImpl
-
- org.mp4parser.muxer.PiffMp4TrackImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Track,CencEncryptedTrack
public class PiffMp4TrackImpl extends Mp4TrackImpl implements CencEncryptedTrack
This track implementation is to be used when MP4 track is CENC encrypted.
-
-
Constructor Summary
Constructors Constructor Description PiffMp4TrackImpl(long trackId, Container isofile, RandomAccessSource randomAccess, String name)Creates a track from a TrackBox and potentially fragments.
-
Method Summary
Modifier and Type Method Description UUIDgetDefaultKeyId()StringgetName()A name for identification purposes.List<CencSampleAuxiliaryDataFormat>getSampleEncryptionEntries()booleanhasSubSampleEncryption()StringtoString()-
Methods inherited from class org.mp4parser.muxer.Mp4TrackImpl
close, getCompositionTimeEntries, getHandler, getSampleDependencies, getSampleDurations, getSampleEntries, getSamples, getSubsampleInformationBox, getSyncSamples, getTrackMetaData
-
Methods inherited from class org.mp4parser.muxer.AbstractTrack
getDuration, getEdits, getSampleGroups
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.mp4parser.muxer.Track
getCompositionTimeEntries, getDuration, getEdits, getHandler, getSampleDependencies, getSampleDurations, getSampleEntries, getSampleGroups, getSamples, getSubsampleInformationBox, getSyncSamples, getTrackMetaData
-
-
-
-
Constructor Detail
-
PiffMp4TrackImpl
public PiffMp4TrackImpl(long trackId, Container isofile, RandomAccessSource randomAccess, String name) throws IOExceptionCreates a track from a TrackBox and potentially fragments. Use fragements parameter only to supply additional fragments that are not located in the main file.- Parameters:
trackId- ID of the track to extractisofile- the parsed MP4 filerandomAccess- the RandomAccessSource to read the samples fromname- an arbitrary naem to identify track later - e.g. filename- Throws:
IOException- if reading from underlyingDataSourcefails
-
-
Method Detail
-
getDefaultKeyId
public UUID getDefaultKeyId()
-
hasSubSampleEncryption
public boolean hasSubSampleEncryption()
- Specified by:
hasSubSampleEncryptionin interfaceCencEncryptedTrack
-
getSampleEncryptionEntries
public List<CencSampleAuxiliaryDataFormat> getSampleEncryptionEntries()
- Specified by:
getSampleEncryptionEntriesin interfaceCencEncryptedTrack
-
getName
public String getName()
Description copied from interface:TrackA name for identification purposes. Might return the underlying filename or network address or any other identifier. For informational/debug only. This is no metadata!- Specified by:
getNamein interfaceTrack- Overrides:
getNamein classAbstractTrack- Returns:
- the track's name
-
-