Class MultimediaInfo


  • public class MultimediaInfo
    extends java.lang.Object
    Instances of this class report informations about a decoded multimedia file.
    Author:
    Carlo Pelliccia
    • Constructor Summary

      Constructors 
      Constructor Description
      MultimediaInfo()  
    • Method Summary

      Modifier and Type Method Description
      AudioInfo getAudio()
      Returns a set of audio-specific informations.
      long getDuration()
      Returns the stream duration in millis.
      java.lang.String getFormat()
      Returns the multimedia file format name.
      VideoInfo getVideo()
      Returns a set of video-specific informations.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MultimediaInfo

        public MultimediaInfo()
    • Method Detail

      • getFormat

        public java.lang.String getFormat()
        Returns the multimedia file format name.
        Returns:
        The multimedia file format name.
      • getDuration

        public long getDuration()
        Returns the stream duration in millis. If less than 0 this information is not available.
        Returns:
        The stream duration in millis. If less than 0 this information is not available.
      • getAudio

        public AudioInfo getAudio()
        Returns a set of audio-specific informations. If null, there's no audio stream in the multimedia file.
        Returns:
        A set of audio-specific informations.
      • getVideo

        public VideoInfo getVideo()
        Returns a set of video-specific informations. If null, there's no video stream in the multimedia file.
        Returns:
        A set of audio-specific informations.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object