Class MultimediaObject


  • public class MultimediaObject
    extends java.lang.Object
    • Method Summary

      Modifier and Type Method Description
      java.io.File getFile()  
      MultimediaInfo getInfo()
      Returns a set informations about a multimedia file, if its format is supported for decoding.
      java.net.URL getURL()  
      boolean isURL()
      Check if we have a file or an URL
      void setFile​(java.io.File file)  
      void setUR​(java.net.URL input)  
      • Methods inherited from class java.lang.Object

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

      • MultimediaObject

        public MultimediaObject​(java.io.File input)
        It builds an extractor using a DefaultFFMPEGLocator instance to locate the ffmpeg executable to use.
        Parameters:
        input - Input file for creating MultimediaObject
      • MultimediaObject

        public MultimediaObject​(java.net.URL input)
        It builds an extractor using a DefaultFFMPEGLocator instance to locate the ffmpeg executable to use.
        Parameters:
        input - Input URL for creating MultimediaObject
      • MultimediaObject

        public MultimediaObject​(java.io.File input,
                                FFMPEGLocator locator)
        It builds an extractor with a custom FFMPEGLocator.
        Parameters:
        input - Input file for creating MultimediaObject
        locator - The locator picking up the ffmpeg executable used by the extractor.
    • Method Detail

      • getFile

        public java.io.File getFile()
        Returns:
        file
      • getURL

        public java.net.URL getURL()
      • setFile

        public void setFile​(java.io.File file)
      • setUR

        public void setUR​(java.net.URL input)
      • isURL

        public boolean isURL()
        Check if we have a file or an URL
        Returns:
        true if this object references an URL