Package org.mp4parser.muxer
Class CencMp4TrackImplImpl
- java.lang.Object
-
- org.mp4parser.muxer.AbstractTrack
-
- org.mp4parser.muxer.Mp4TrackImpl
-
- org.mp4parser.muxer.CencMp4TrackImplImpl
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Track
,CencEncryptedTrack
public class CencMp4TrackImplImpl extends Mp4TrackImpl implements CencEncryptedTrack
This track implementation is to be used when MP4 track is CENC encrypted.
-
-
Constructor Summary
Constructors Constructor Description CencMp4TrackImplImpl(long trackId, Container isofile, RandomAccessSource randomAccess, String name)
Creates a track from a TrackBox and potentially fragments.
-
Method Summary
Modifier and Type Method Description String
getName()
A name for identification purposes.List<CencSampleAuxiliaryDataFormat>
getSampleEncryptionEntries()
boolean
hasSubSampleEncryption()
String
toString()
-
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
-
CencMp4TrackImplImpl
public CencMp4TrackImplImpl(long trackId, Container isofile, RandomAccessSource randomAccess, String name) throws IOException
Creates 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 underlyingDataSource
fails
-
-
Method Detail
-
hasSubSampleEncryption
public boolean hasSubSampleEncryption()
- Specified by:
hasSubSampleEncryption
in interfaceCencEncryptedTrack
-
getSampleEncryptionEntries
public List<CencSampleAuxiliaryDataFormat> getSampleEncryptionEntries()
- Specified by:
getSampleEncryptionEntries
in interfaceCencEncryptedTrack
-
getName
public String getName()
Description copied from interface:Track
A 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:
getName
in interfaceTrack
- Overrides:
getName
in classAbstractTrack
- Returns:
- the track's name
-
-