Class MediaInformationSession

  • All Implemented Interfaces:
    Session

    public class MediaInformationSession
    extends FFprobeSession
    implements Session

    A custom FFprobe session, which produces a MediaInformation object using the FFprobe output.

    • Constructor Detail

      • MediaInformationSession

        public MediaInformationSession​(java.lang.String[] arguments)
        Creates a new media information session.
        Parameters:
        arguments - command arguments
      • MediaInformationSession

        public MediaInformationSession​(java.lang.String[] arguments,
                                       ExecuteCallback executeCallback)
        Creates a new media information session.
        Parameters:
        arguments - command arguments
        executeCallback - session specific execute callback function
      • MediaInformationSession

        public MediaInformationSession​(java.lang.String[] arguments,
                                       ExecuteCallback executeCallback,
                                       LogCallback logCallback)
        Creates a new media information session.
        Parameters:
        arguments - command arguments
        executeCallback - session specific execute callback function
        logCallback - session specific log callback function
    • Method Detail

      • getMediaInformation

        public MediaInformation getMediaInformation()
        Returns the media information extracted in this session.
        Returns:
        media information extracted or null if the command failed or the output can not be parsed
      • setMediaInformation

        public void setMediaInformation​(MediaInformation mediaInformation)
        Sets the media information extracted in this session.
        Parameters:
        mediaInformation - media information extracted