Class XuggleMovieVideoType

java.lang.Object
org.opensourcephysics.media.mov.MovieVideoType
org.opensourcephysics.media.xuggle.XuggleMovieVideoType
All Implemented Interfaces:
VideoType

public class XuggleMovieVideoType extends MovieVideoType
This implements the VideoType interface with a Xuggle or JS type.
Version:
1.0
Author:
Douglas Brown
  • Constructor Details

    • XuggleMovieVideoType

      public XuggleMovieVideoType()
      Constructor attempts to load a movie class the first time used. This will throw an error if movies are not available.
    • XuggleMovieVideoType

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

    • register

      public static void register()
    • getDescription

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

      public boolean isType(Video video)
      Return true if the specified video is this type.
      Parameters:
      video - the video
      Returns:
      true if the video is this type
    • getVideo

      public Video getVideo(String name, String basePath, XMLControl control)
      Description copied from interface: VideoType
      Create a Video object from a file drop, file open, or TRK or TRZ file. Also called with non-null basePath from ExportZipDialog.Export.modifyControlForClip
      Returns:
    • getRecorder

      public VideoRecorder getRecorder()
      Gets a Xuggle video recorder.
      Returns:
      the video recorder
    • getTypeName

      public String getTypeName()
      Description copied from interface: VideoType
      Gets the short name of the video type.
      Returns:
      the type name
    • toString

      public String toString()
      Overrides:
      toString in class Object