Class XuggleMovieVideoType
java.lang.Object
org.opensourcephysics.media.mov.MovieVideoType
org.opensourcephysics.media.xuggle.XuggleMovieVideoType
- All Implemented Interfaces:
VideoType
This implements the VideoType interface with a Xuggle or JS type.
- Version:
- 1.0
- Author:
- Douglas Brown
-
Field Summary
Fields inherited from class org.opensourcephysics.media.mov.MovieVideoType
movieFileFilters, recordable, singleTypeFilterFields inherited from interface org.opensourcephysics.media.core.VideoType
TYPE_GIF, TYPE_IMAGE -
Constructor Summary
ConstructorsConstructorDescriptionConstructor attempts to load a movie class the first time used.XuggleMovieVideoType(VideoFileFilter filter) Constructor with a file filter for a specific container type. -
Method Summary
Modifier and TypeMethodDescriptionGets the name and/or description of this type.Gets a Xuggle video recorder.Gets the short name of the video type.getVideo(String name, String basePath, XMLControl control) Create a Video object from a file drop, file open, or TRK or TRZ file.booleanReturn true if the specified video is this type.static voidregister()toString()Methods inherited from class org.opensourcephysics.media.mov.MovieVideoType
canRecord, getDefaultExtension, getDefaultFileFilter, getFileFilters, setRecordableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensourcephysics.media.core.VideoType
_toString, accepts, getVideo, getVideoControlForExportOnly
-
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
Constructor with a file filter for a specific container type.- Parameters:
filter- the file filter
-
-
Method Details
-
register
public static void register() -
getDescription
Gets the name and/or description of this type.- Specified by:
getDescriptionin interfaceVideoType- Overrides:
getDescriptionin classMovieVideoType- Returns:
- a description
-
isType
Return true if the specified video is this type.- Parameters:
video- the video- Returns:
- true if the video is this type
-
getVideo
Description copied from interface:VideoTypeCreate 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
Gets a Xuggle video recorder.- Returns:
- the video recorder
-
getTypeName
Description copied from interface:VideoTypeGets the short name of the video type.- Returns:
- the type name
-
toString
-