Class CencDecryptingTrackImpl
- java.lang.Object
-
- org.mp4parser.muxer.AbstractTrack
-
- org.mp4parser.muxer.tracks.encryption.CencDecryptingTrackImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Track
public class CencDecryptingTrackImpl extends AbstractTrack
-
-
Constructor Summary
Constructors Constructor Description CencDecryptingTrackImpl(CencEncryptedTrack original, Map<UUID,SecretKey> keys)CencDecryptingTrackImpl(CencEncryptedTrack original, SecretKey sk)
-
Method Summary
Modifier and Type Method Description voidclose()StringgetHandler()long[]getSampleDurations()Each samples is covers a small time span in a video.List<SampleEntry>getSampleEntries()Map<GroupEntry,long[]>getSampleGroups()List<Sample>getSamples()The list of all samples.long[]getSyncSamples()TrackMetaDatagetTrackMetaData()-
Methods inherited from class org.mp4parser.muxer.AbstractTrack
getCompositionTimeEntries, getDuration, getEdits, getName, getSampleDependencies, getSubsampleInformationBox
-
-
-
-
Constructor Detail
-
CencDecryptingTrackImpl
public CencDecryptingTrackImpl(CencEncryptedTrack original, SecretKey sk)
-
CencDecryptingTrackImpl
public CencDecryptingTrackImpl(CencEncryptedTrack original, Map<UUID,SecretKey> keys)
-
-
Method Detail
-
close
public void close() throws IOException- Throws:
IOException
-
getSyncSamples
public long[] getSyncSamples()
- Specified by:
getSyncSamplesin interfaceTrack- Overrides:
getSyncSamplesin classAbstractTrack
-
getSampleEntries
public List<SampleEntry> getSampleEntries()
-
getSampleDurations
public long[] getSampleDurations()
Description copied from interface:TrackEach samples is covers a small time span in a video. This method returns the duration for each sample in track timescale. The array must contain exactly as many samples asTrack.getSamples()contains.- Returns:
- an array of ticks
-
getTrackMetaData
public TrackMetaData getTrackMetaData()
-
getHandler
public String getHandler()
-
getSamples
public List<Sample> getSamples()
Description copied from interface:TrackThe list of all samples.- Returns:
- this track's samples
-
getSampleGroups
public Map<GroupEntry,long[]> getSampleGroups()
- Specified by:
getSampleGroupsin interfaceTrack- Overrides:
getSampleGroupsin classAbstractTrack
-
-