Class MediaContainerDetectionResult


  • public class MediaContainerDetectionResult
    extends java.lang.Object
    Result of audio container detection.
    • Method Detail

      • unsupportedFormat

        public static MediaContainerDetectionResult unsupportedFormat​(MediaContainerProbe probe,
                                                                      java.lang.String reason)
        Creates a result ofr an unsupported file of a known container.
        Parameters:
        probe - Probe of the container
        reason - The reason why this track is not supported
      • isContainerDetected

        public boolean isContainerDetected()
        Returns:
        If the container this file uses was detected. In case this returns true, the container probe is non-null.
      • getContainerDescriptor

        public MediaContainerDescriptor getContainerDescriptor()
        Returns:
        The probe for the container of the file
      • isSupportedFile

        public boolean isSupportedFile()
        Returns:
        Whether this specific file is supported. If this returns true, the track info is non-null. Otherwise the reason why this file is not supported can be retrieved via getUnsupportedReason().
      • getUnsupportedReason

        public java.lang.String getUnsupportedReason()
        Returns:
        The reason why this track is not supported.
      • getTrackInfo

        public AudioTrackInfo getTrackInfo()
        Returns:
        Track info for the detected file.
      • isReference

        public boolean isReference()