Class MovieVideoType

java.lang.Object
org.opensourcephysics.media.mov.MovieVideoType
All Implemented Interfaces:
VideoType
Direct Known Subclasses:
JSMovieVideoType, XuggleMovieVideoType

public abstract class MovieVideoType extends Object implements VideoType
This implements the VideoType interface for "movie" video files. Video engines like Xuggle and JS are subclasses of MovieVideoType.
Version:
1.0
Author:
Douglas Brown
  • Field Details

  • Constructor Details

    • MovieVideoType

      public MovieVideoType()
      No-arg constructor (no longer attempts calls the MovieFactory).
    • MovieVideoType

      public MovieVideoType(VideoFileFilter filter)
      Constructor with a file filter for a specific container type.
      Parameters:
      filter - the file filter
  • Method Details

    • canRecord

      public boolean canRecord()
      Reports whether this type can record videos
      Specified by:
      canRecord in interface VideoType
      Returns:
      true by default (set recordable to change)
    • setRecordable

      public void setRecordable(boolean recordable)
      Sets the recordable property - Only Xuggle movie factory can do this.
      Parameters:
      recordable - true if recordable
    • getFileFilters

      public VideoFileFilter[] getFileFilters()
      Gets the file filters for this type.
      Specified by:
      getFileFilters in interface VideoType
      Returns:
      an array of file filters
    • getDefaultFileFilter

      public VideoFileFilter getDefaultFileFilter()
      Gets the default file filter for this type. May return null.
      Specified by:
      getDefaultFileFilter in interface VideoType
      Returns:
      the default file filter
    • getDescription

      public String getDescription()
      Gets the name and/or description of this type.
      Specified by:
      getDescription in interface VideoType
      Returns:
      a description
    • getDefaultExtension

      public String getDefaultExtension()
      Gets the default extension for this type.
      Specified by:
      getDefaultExtension in interface VideoType
      Returns:
      an extension