Class MediaInformationSession

  • All Implemented Interfaces:
    Session

    public class MediaInformationSession
    extends AbstractSession
    implements Session

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

    • Method Detail

      • create

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

        public static MediaInformationSession create​(java.lang.String[] arguments,
                                                     MediaInformationSessionCompleteCallback completeCallback)
        Creates a new media information session.
        Parameters:
        arguments - command arguments
        completeCallback - session specific complete callback
        Returns:
        created session
      • create

        public static MediaInformationSession create​(java.lang.String[] arguments,
                                                     MediaInformationSessionCompleteCallback completeCallback,
                                                     LogCallback logCallback)
        Creates a new media information session.
        Parameters:
        arguments - command arguments
        completeCallback - session specific complete callback
        logCallback - session specific log callback
        Returns:
        created session
      • 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
      • isFFmpeg

        public boolean isFFmpeg()
        Description copied from interface: Session
        Returns whether it is an FFmpeg session or not.
        Specified by:
        isFFmpeg in interface Session
        Returns:
        true if it is an FFmpeg session, false otherwise
      • isFFprobe

        public boolean isFFprobe()
        Description copied from interface: Session
        Returns whether it is an FFprobe session or not.
        Specified by:
        isFFprobe in interface Session
        Returns:
        true if it is an FFprobe session, false otherwise
      • isMediaInformation

        public boolean isMediaInformation()
        Description copied from interface: Session
        Returns whether it is a MediaInformation session or not.
        Specified by:
        isMediaInformation in interface Session
        Returns:
        true if it is a MediaInformation session, false otherwise
      • toString

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