Class JSMovieVideoType

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

public class JSMovieVideoType extends MovieVideoType
This implements the VideoType interface with a JS type.
Author:
hansonr
  • Constructor Details

    • JSMovieVideoType

      public JSMovieVideoType()
      No-arg constructor.
    • JSMovieVideoType

      public JSMovieVideoType(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()
      Description copied from interface: VideoType
      Gets a video recorder. Returns null if canRecord() is false.
      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