![JAR search and dependency download from the Maven repository](/logo.png)
com.mp4parser.streaming.StreamingSampleHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of isoparser Show documentation
Show all versions of isoparser Show documentation
A generic parser and writer for all ISO 14496 based files (MP4, Quicktime, DCF, PDCF, ...)
package com.mp4parser.streaming;
public class StreamingSampleHelper {
static boolean hasSampleExtension(StreamingSample streamingSample, Class extends SampleExtension> clazz) {
for (SampleExtension sampleExtension : streamingSample.getExtensions()) {
if (clazz.isAssignableFrom(sampleExtension.getClass())) {
return true;
}
}
return false;
}
static B getSampleExtension(StreamingSample streamingSample, Class clazz) {
for (SampleExtension sampleExtension : streamingSample.getExtensions()) {
if (clazz.isAssignableFrom(sampleExtension.getClass())) {
return (B) sampleExtension;
}
}
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy