|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--quicktime.QTObject | +--quicktime.std.movies.Movie
The Movie class implements methods for the corresponding QuickTime structure. A QuickTime movie can consist of data in sequences from different forms, such as analog video and CD-ROM. The movie is not the medium; it is the organizing principle.
A QuickTime movie may contain several Tracks. Each track refers to a single media type that contains references to the movie data, which may be stored as images or sounds on various kinds of storage media.
Movie objects can be made from various sources that contain existing QuickTime movie data, such as memory, files, urls. To make a movie from an existing movie source you use the from... class calls. If you wish to make a new movie that you will construct yourself you use the movie constructor.
If an application installs either a MovieProgress or MovieDrawingComplete callback, then it must remove these callbacks when it has finished with them to allow the native structures used in these callbacks to be properly disposed.
Fields inherited from interface quicktime.jdirect.QuickTimeLib |
JDirect_MacOSX, libraryInstance, name |
Fields inherited from interface quicktime.jdirect.QuickTimeVRLib |
JDirect_MacOSX, libraryInstance |
Constructor Summary | |
Movie()
This method creates a new movie in memory. |
|
Movie(int flags)
This method creates a new movie in memory. |
Method Summary | |
void |
abortPrePreroll(int err)
This method aborts. |
Track |
addEmptyTrack(Track srcTrack,
DataRef dataRef)
This method adds an empty track to the movie. |
void |
addExecuteWiredActionsProc(ExecutingWiredAction wa)
This method allows you to intercept executing wired actions of this movie. |
int |
addResource(OpenMovieFile fileOut,
int resID,
java.lang.String resourceName)
This method adds a movie resource to a specified resource file. |
void |
addSelection(Movie srcMovie)
This method adds one or more tracks to a movie. |
Track |
addTrack(float width,
float height,
float trackVolume)
Create a track in a movie. |
void |
clearChanged()
This method sets the movie changed flag to indicate that the movie has not been changed. |
void |
clearSelection()
This method removes the segment of the movie that is defined by the current selection. |
int |
convertToFile(QTFile outputFile,
int fileType,
int creator,
int scriptTag)
This method converts this movie into a specified file and type. |
int |
convertToFile(QTFile outputFile,
int fileType,
int creator,
int scriptTag,
int flags)
This method converts this movie into a specified file and type. |
int |
convertToFile(Track onlyTrack,
QTFile outputFile,
int fileType,
int creator,
int scriptTag)
This method converts this movie into a specified file and type. |
int |
convertToFile(Track onlyTrack,
QTFile outputFile,
int fileType,
int creator,
int scriptTag,
int flags,
MovieExporter userComp)
This method converts this movie into a specified file and type. |
Movie |
copySelection()
This method creates a new movie that contains the original movie's current selection. |
void |
copySettings(Movie dstMovie)
The copySettings method copies many settings from one movie to another, overwriting the destination settings in the process. |
static Movie |
createMovieFile(QTFile pathName,
int fCreator,
int flags)
Creates a Movie object and the file as specified by the QTFile. |
Movie |
cutSelection()
This method creates a new movie that contains the original movie's current selection. |
void |
deleteSegment(int startTime,
int duration)
This method removes a specified segment from a movie. |
void |
executeWiredActions(int flags,
AtomContainer actions)
This method executes specified wired actions associated with the movie |
int |
flatten(int movieFlattenFlags,
QTFile fileOut,
int creator,
int scriptTag,
int createQTFileFlags,
int resID,
java.lang.String resName)
This method creates a new movie file containing a specified movie. |
Movie |
flattenData(int movieFlattenFlags,
QTFile fileOut,
int creator,
int scriptTag,
int createQTFileFlags)
This method creates a new movie file and creates a new movie that contains all of its movie data. |
Movie |
flattenData(int movieFlattenFlags,
QTHandle handle)
This method creates a new movie that contains all of its movie data loaded into memory. |
static Movie |
fromDataFork(OpenFile fileIn,
int fileOffset,
int flags,
MovieInfo info)
This method enables you to retrieve a movie that is stored anywhere in the data fork of a specified file. |
static Movie |
fromDataRef(DataRef defaultDataRef,
int flags)
This method enables you to retrieve a movie from any data reference. |
static Movie |
fromFile(OpenMovieFile fileIn)
This method creates a movie in memory from a resource that is stored in a movie file. |
static Movie |
fromFile(OpenMovieFile fileIn,
int flags,
MovieInfo info)
This method creates a movie in memory from a resource that is stored in a movie file. |
static Movie |
fromHandle(QTHandle hand)
This method creates a movie in memory from a movie resource or a handle you obtained from the PutMovieIntoHandle function. |
static Movie |
fromHandle(QTHandle hand,
int flags,
MovieInfo info)
This method creates a movie in memory from a movie resource or a handle you obtained from the PutMovieIntoHandle function. |
static Movie |
fromScrap(int newMovieFlags)
This method allows your application to create a movie from the contents of the scrap. |
static Movie |
fromSequenceGrabber(SequenceGrabber sg)
Determines a reference to the movie that contains the data collected during a record operation. |
boolean |
getActive()
This method returns a boolean value. |
TimeInfo |
getActiveSegment()
This method allows your application to determine what portion of a movie is currently active for playing. |
QDRect |
getBounds()
This method returns a movie's boundary rectangle, which is a rectangle that encompasses all of the movie's enabled tracks. |
Region |
getBoundsRgn()
This method allows your application to determine a movie's boundary region. |
QDRect |
getBox()
This method returns a movie's boundary rectangle, which is a rectangle that encompasses all of the movie's enabled tracks. |
Region |
getClipRgn()
This method allows your application to determine a movie's clipping region. |
ColorTable |
getColorTable()
This method allows your application to get the color table of the movie. |
int |
getCreationTime()
This method returns a long integer that contains the movie's creation date and time information. |
int |
getDataSize(int startTime,
int duration)
This method allows your application to determine the size, in bytes, of the sample data in a segment of a movie. |
DataRef |
getDefaultDataRef()
This method allows your application to get the default data reference for the movie. |
Region |
getDisplayBoundsRgn()
This method allows your application to determine a movie's display boundary region. |
Region |
getDisplayClipRgn()
This method allows your application to determine a movie's current display clipping region. |
int |
getDuration()
This method returns the duration of a movie. |
QDGraphics |
getGWorld()
Your application can determine a movie's graphics world by calling the getGWorld method. |
Track |
getIndTrack(int index)
This method allows your application to determine the track identifier of a track given the track's index value. |
Track |
getIndTrackType(int index,
int trackType,
int flags)
This method allows your application to determine the track identifier of a track given a track type and an index value. |
Matrix |
getMatrix()
This method allows allows your application to retrieve a movie's transformation matrix. |
int |
getModificationTime()
This method returns a long integer that contains the movie's creation date and time information. |
QDRect |
getNaturalBoundsRect()
No QT Documentation. |
TimeInfo |
getNextInterestingTime(int interestingTimeFlags,
int[] mediaTypes,
int time,
float rate)
This method searches for times of interest in a movie. |
Track |
getNextTrackForCompositing(Track theTrack)
No QT Documentation. |
Pict |
getPict(int time)
This method creates a picture from the specified movie at the specified time. |
QDRect |
getPosterBox()
This method allows you to obtain a poster's boundary rectangle. |
Pict |
getPosterPict()
This method creates a picture that contains a movie's poster. |
int |
getPosterTime()
This method returns the poster's time in the movie. |
float |
getPreferredRate()
This method returns a movie's default playback rate. |
float |
getPreferredVolume()
This method returns a movie's preferred volume setting. |
boolean |
getPreviewMode()
This method allows your application to determine whether a movie is in preview mode. |
TimeInfo |
getPreviewTime()
This method returns the starting time and duration of the movie's preview. |
Track |
getPrevTrackForCompositing(Track theTrack)
No QT Documentation. |
Track |
getQTVRTrack(int index)
The QTVRGetQTVRTrack function returns a track for the QTVR track that has the index specified by the index parameter in the QuickTime movie specified by the theMovie parameter. |
float |
getRate()
This method returns a movie's playback rate. |
Region |
getSegmentDisplayBoundsRgn(int time,
int duration)
This method allows your application to determine a movie's display boundary region during a specified segment. |
TimeInfo |
getSelection()
This method returns information about a movie's current selection. |
StatusInfo |
getStatus()
This method searches for errors in all the enabled tracks of the movie. |
int |
getTime()
This method returns a movie's current time. |
TimeBase |
getTimeBase()
This method allows you to get movie's TimeBase. |
int |
getTimeScale()
This method returns the time scale of a movie. |
Track |
getTrack(int trackID)
This method allows your application to determine the track identifier of a track given the track's ID value. |
int |
getTrackCount()
This method returns the number of tracks in a movie. |
TimeRecord |
getTRTime()
This method returns a movie's current time as a TimeRecord object. |
UserData |
getUserData()
This method allows your application to obtain access to a movie's user data list. |
float |
getVolume()
This method returns movie's current volume setting. |
void |
goToBeginning()
This method repositions a movie to play from its start. |
void |
goToEnd()
This method repositions a movie to play from its end. |
boolean |
hasChanged()
This method allows your application to determine whether a movie has changed and needs to be saved. |
void |
insertEmptySegment(int dstIn,
int dstDuration)
This method adds an empty segment to a movie. |
void |
insertSegment(Movie dstMovie,
int srcIn,
int srcDuration,
int dstIn)
The insertSegment method copies part of one movie to another. |
void |
invalidateRegion(Region invalidRgn)
This method invalidates part of the movie specified by the invalidRgn. |
boolean |
isDone()
This method allows you to determine if a particular movie has completely finished playing. |
void |
loadIntoRam(int time,
int duration,
int flags)
This method loads a movie's data into memory. |
int |
maxLoadedTimeInMovie()
Returns the duration of the part of a movie that has already been downloaded. |
boolean |
needsTimeTable()
Determine whether a movie is being progressively downloaded.. |
MovieEditState |
newEditState()
You can create an edit state by calling the NewMovieEditState function. |
Track |
newTrack(float width,
float height,
float trackVolume)
Create a track in a movie. |
void |
pasteHandle(QTHandle handle,
int handleType,
int flags,
MovieImporter userComp)
This method takes the contents of a specified handle, together with its type, and pastes it into a specified movie. |
void |
pasteSelection(Movie srcMovie)
This method places the tracks from one movie into another movie. |
void |
playPreview()
This method plays a movie's preview. |
boolean |
pointInMovie(QDPoint pt)
This method allows your application to determine whether a specified point lies in the region defined by a movie's final display boundary region after it has been clipped by the movie's display clipping region. |
void |
prePreroll(int time,
float rate)
This method allows your application to prepare a portion of a movie for playback. |
void |
prePreroll(int time,
float rate,
MoviePrePreroll proc)
This method allows your application to prepare a portion of a movie for playback. |
void |
preroll(int time,
float rate)
This method allows your application to prepare a portion of a movie for playback. |
void |
putIntoDataFork(OpenMovieFile fileOut,
int offset,
int maxSize)
This method allows you to store a movie in the data fork of a given file. |
void |
putIntoHandle(QTHandle intoThisHandle)
This method creates a new movie resource for you. |
QTHandle |
putIntoTypedHandle(Track targetTrack,
int handleType,
int start,
int dur,
int flags,
MovieExporter userComp)
This method takes a movie (or a single track from within that movie) and converts it into a handle of a specified type. |
void |
putOnScrap(int movieScrapFlags)
This method allows your application to place a movie onto the scrap. |
void |
removeDrawingCompleteProc()
This allows you to remove a previously assigned drawing-complete method to a movie. |
void |
removeExecuteWiredActionsProc()
This method allows you to remove the existing executing wired actions of this movie. |
void |
removeResource(OpenMovieFile fileOut,
int resID)
This method removes a movie resource from a specified movie file. |
void |
removeTrack(Track track)
Removes a track from a movie. |
void |
scaleSegment(int startTime,
int oldDuration,
int newDuration)
This method changes the duration of a segment of a movie and then removes the current selection from the original movie. |
SearchResult |
searchText(QTPointer text,
int searchFlags,
int searchTime,
int searchOffset)
This method allows you to search for text in a movie. |
SearchResult |
searchText(QTPointer text,
int searchFlags,
Track searchTrack,
int searchTime,
int searchOffset)
This method allows you to search for text in a movie. |
void |
selectAlternates()
This method allows your application to instruct the Movie Toolbox to select appropriate tracks immediately. |
void |
setActive(boolean active)
This method allows your application to activate and deactivate a movie. |
void |
setActiveSegment(TimeInfo activeSegmentTimeInfo)
This method allows your application to define a movie's active segment. |
void |
setAutoTrackAlternatesEnabled(boolean enable)
This method allows your application to enable and disable automatic track selection by the Movie Toolbox. |
void |
setBounds(QDRect boxRect)
This method sets a movie's boundary rectangle, or movie box, which is a rectangle that encompasses the spatial representation of all of the movie's enabled tracks. |
void |
setBox(QDRect boxRect)
This method sets a movie's boundary rectangle, or movie box, which is a rectangle that encompasses the spatial representation of all of the movie's enabled tracks. |
void |
setClipRgn(Region theClip)
This method allows your application to establish a movie's clipping region. |
void |
setColorTable(ColorTable ctab)
This method allows your application to assign a color table to the movie. |
void |
setDefaultDataRef(DataRef newRef)
This method sets the default data reference for the movie. |
void |
setDisplayClipRgn(Region theClip)
This method allows your application to establish a movie's current display clipping region. |
void |
setDrawingCompleteProc(int flags,
MovieDrawingComplete proc)
This allows you to assign a drawing-complete method to a movie. |
void |
setGWorld(QDGraphics port,
GDevice gdh)
The setGWorld method allows your application to establish a movie's display coordinate system by setting the graphics world for displaying a movie. |
void |
setLanguage(int language)
This method allows your application to specify a movie's language. |
void |
setMasterClock(Clock clockMeister,
TimeRecord slaveZero)
This method allows you to assign a clock component to a movie. |
void |
setMasterTimeBase(TimeBase tb,
TimeRecord slaveZero)
This method allows you to assign a master time base to a movie. |
void |
setMatrix(Matrix matrix)
This method allows your application to set a movie's transformation matrix. |
void |
setPlayHints(int flags,
int flagsMask)
This method allows your application to provide information to the Movie Toolbox that can influence movie playback. |
void |
setPosterBox(QDRect boxRect)
This method allows you to set a poster's boundary rectangle. |
void |
setPosterTime(int posterTime)
This method sets the poster time for the movie. |
void |
setPreferredRate(float rate)
This method allows your application to specify a movie's default playback rate. |
void |
setPreferredVolume(float volume)
This method allows your application to set a movie's preferred volume setting. |
void |
setPreviewMode(boolean usePreview)
This method allows your application to place a movie into and out of preview mode. |
void |
setPreviewTime(int previewTime,
int previewDuration)
This method allows your application to define the starting time and duration of the movie's preview. |
void |
setPreviewTime(TimeInfo previewTimeInfo)
This method allows your application to define the starting time and duration of the movie's preview. |
void |
setProgressProc()
This method allows you to attach a progress function to a movie. |
void |
setProgressProc(MovieProgress mp)
This method allows you to attach a progress function to a movie. |
void |
setRate(float rate)
This method sets a movie's playback rate. |
void |
setSelection(int selectionTime,
int selectionDuration)
This method sets a movie's current selection. |
void |
setSelection(TimeInfo selectionTimeInfo)
This method sets a movie's current selection. |
void |
setTime(TimeRecord newtime)
This method allows you to set a movie's current time. |
void |
setTimeScale(int timeScale)
This method establishes a movie's time scale. |
void |
setTimeValue(int newtime)
This method allows your application to set a movie's time value. |
void |
setVolume(float volume)
This method allows your application to set a movie's current volume. |
void |
showInformation()
This method displays a dialog giving information about the movie. |
void |
showPoster()
You can use showPoster method to display a movie's poster. |
void |
start()
This method starts the movie playing from the current movie time, which is where the movie last stopped playing. |
void |
stop()
This method stops the playback of a movie. |
void |
task(int maxMilliSecToUse)
The moviesTask method services this movie. |
static void |
taskAll(int maxMilliSecToUse)
The moviesTask method services all of the currently active movies. |
java.lang.String |
toString()
Print information about this object. |
void |
update()
This method allows your application to ensure that the Movie Toolbox properly displays your movie after it has been uncovered. |
void |
updateResource(OpenMovieFile fileOut,
int resID,
java.lang.String resourceName)
This method replaces the contents of a movie resource in a specified movie file. |
void |
useEditState(MovieEditState anEditState)
Your application can use this method to return a movie to its condition according to an edit state you created previously. |
Methods inherited from class quicktime.QTObject |
disposeQTObject, equals, ID |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Movie() throws QTException
public Movie(int flags) throws QTException
flags
- flags to control settings when creating the movie.Method Detail |
public static void taskAll(int maxMilliSecToUse) throws QTException
maxMilliSecToUse
- Determines the maximum number of milliseconds that MoviesTask can work before returning.public static Movie createMovieFile(QTFile pathName, int fCreator, int flags) throws QTException
pathName
- specifies the complete pathName of the file that is to be created.fCreator
- Specifies the creator of the file.flags
- Specifies the behaviour when creating the file.public static Movie fromSequenceGrabber(SequenceGrabber sg)
SequenceGrabber.getMovie()
public static Movie fromScrap(int newMovieFlags) throws QTException
newMovieFlags
- Controls the operation of this method.public static Movie fromFile(OpenMovieFile fileIn) throws QTException
fileIn
- identifies the open movie file from which the movie is to be loaded.public static Movie fromFile(OpenMovieFile fileIn, int flags, MovieInfo info) throws QTException
fileIn
- identifies the open movie file stream from which the movie is to be loaded.flags
- controls the operation of this method.info
- a MovieInfo object to receive state information about the movie.public static Movie fromHandle(QTHandle hand) throws QTException
hand
- contains a handle to the movie resource from which the movie is to be loaded.public static Movie fromHandle(QTHandle hand, int flags, MovieInfo info) throws QTException
hand
- contains a handle to the movie resource from which the movie is to be loaded.flags
- controls the operation of this method.info
- a MovieInfo object to receive state information about the movie.public static Movie fromDataFork(OpenFile fileIn, int fileOffset, int flags, MovieInfo info) throws QTException, QDException
fileIn
- The open movie file stream.fileOffset
- Specifies the starting file offset of the atom in the data
fork of the file specified by the fRefNum parameter.flags
- controls the operation of this method.info
- a MovieInfo object to receive state information about the movie.public static Movie fromDataRef(DataRef defaultDataRef, int flags) throws QTException
defaultDataRef
- a DataRef object specifying the data reference this method will load the movie from.flags
- Controls the operation of this method.
NOTE: it is a good idea to use the flag newMovieAsyncOK (defined in StdQTConstants4) to prevent the VM from
blocking (in the case of no network connection, or a bad URL)public int addResource(OpenMovieFile fileOut, int resID, java.lang.String resourceName) throws StdQTException
fileOut
- Identifies the open writable movie file stream to which the resource is to be added.resID
- Contains a pointer to a field that contains the resource ID number for the new resource.
If the field referred to by the resId parameter is set to 0, the Movie Toolbox assigns a
unique resource ID number to the new resource.resourceName
- a String object that contains the name of the movie resource.
If you set the resourceName parameter to null, the toolbox creates an unnamed resource.public void updateResource(OpenMovieFile fileOut, int resID, java.lang.String resourceName) throws StdQTException
fileOut
- Specifies the open writable movie file stream for the movie to be updated.resID
- Specifies the resource number for the movie.resourceName
- Points to a new name for the resource. If you do not want to change the resource's name,
set this parameter to null.public void removeResource(OpenMovieFile fileOut, int resID) throws StdQTException
fileOut
- Specifies the open writable movie file stream for the movie to be removed.resID
- Specifies the resource number for the movie.public void task(int maxMilliSecToUse) throws QTException
maxMilliSecToUse
- Determines the maximum number of milliseconds that MoviesTask can work before returning.public void setDrawingCompleteProc(int flags, MovieDrawingComplete proc) throws StdQTException
flags
- flags that control under what conditions the proc is calledproc
- the object that will be called when drawing is completeQTCallBack
public void removeDrawingCompleteProc() throws StdQTException
public void preroll(int time, float rate) throws StdQTException
time
- Contains the starting time of the movie segment to play.rate
- Specifies the rate at which you anticipate playing the movie.
Positive values indicate forward rates and negative values indicate reverse rates.public void prePreroll(int time, float rate) throws StdQTException
time
- Contains the starting time of the movie segment to play.rate
- Specifies the rate at which you anticipate playing the movie.
Positive values indicate forward rates and negative values indicate reverse rates.public void prePreroll(int time, float rate, MoviePrePreroll proc) throws StdQTException
time
- Contains the starting time of the movie segment to play.rate
- Specifies the rate at which you anticipate playing the movie.
Positive values indicate forward rates and negative values indicate reverse rates.proc
- the MoviePrePreroll object that will be invoked by this call. This can be null.public void abortPrePreroll(int err) throws StdQTException
time
- Contains the starting time of the movie segment to play.rate
- Specifies the rate at which you anticipate playing the movie.
Positive values indicate forward rates and negative values indicate reverse rates.public void loadIntoRam(int time, int duration, int flags) throws StdQTException
time
- Allows you to specify a portion of the movie to load. The time parameter contains the starting time of the movie segment to load.duration
- Allows you to specify a portion of the movie to load. The time parameter contains the starting time of the movie segment to load. The duration parameter specifies the length of the segment to load.flags
- Gives you explicit control over what is loaded into memory and how long to keep it around.public void setActive(boolean active) throws StdQTException
active
- Activates or deactivates the movie. Set this parameter to true to activate the movie; set this parameter to false to deactivate the movie.public boolean getActive() throws StdQTException
public void start() throws StdQTException
public void stop() throws StdQTException
public void goToBeginning() throws StdQTException
public void goToEnd() throws StdQTException
public boolean isDone() throws StdQTException
public boolean getPreviewMode() throws StdQTException
public void setPreviewMode(boolean usePreview) throws StdQTException
public void showPoster() throws StdQTException
public void playPreview() throws StdQTException
public QDGraphics getGWorld() throws StdQTException
public void setGWorld(QDGraphics port, GDevice gdh) throws StdQTException
port
- the new graphics port or null to use current portgdh
- the graphics device or null to use the current devicepublic QDRect getNaturalBoundsRect() throws StdQTException
public Track getNextTrackForCompositing(Track theTrack) throws QTException
public Track getPrevTrackForCompositing(Track theTrack) throws QTException
public Pict getPict(int time) throws QTException
time
- contains the time from which the image is taken.public Pict getPosterPict() throws QTException
public void update() throws StdQTException
public void invalidateRegion(Region invalidRgn) throws StdQTException
invalidRgn
- a Region object to specify the invalid part of the movie.public QDRect getBounds() throws StdQTException
public QDRect getBox() throws StdQTException
public void setBounds(QDRect boxRect) throws StdQTException
boxRect
- the coordinates of the new boundary rectangle.public void setBox(QDRect boxRect) throws StdQTException
boxRect
- the coordinates of the new boundary rectangle.public Region getDisplayClipRgn() throws QTException
public void setDisplayClipRgn(Region theClip) throws StdQTException
theClip
- a Region object.public Region getClipRgn() throws QTException
public void setClipRgn(Region theClip) throws StdQTException
theClip
- a Region object specifying the new clip region.public Region getDisplayBoundsRgn() throws QTException
public Region getBoundsRgn() throws QTException
public void putIntoHandle(QTHandle intoThisHandle) throws StdQTException
intoThisHandle
- Specifies the handle where the movie will be placed into.public void putIntoDataFork(OpenMovieFile fileOut, int offset, int maxSize) throws StdQTException
fileOut
- Specifies the open writable movie file stream where the movie will be placed into.offset
- Indicates where the movie should be written.maxSize
- Indicates the largest number of bytes that may be written.public int getCreationTime() throws StdQTException
public int getModificationTime() throws StdQTException
public int getTimeScale() throws StdQTException
public void setTimeScale(int timeScale) throws StdQTException
timeScale
- Specifies the movie's new time scale.public int getDuration() throws StdQTException
public float getRate() throws StdQTException
public void setRate(float rate) throws StdQTException
rate
- Specifies the rate.public float getPreferredRate() throws StdQTException
public void setPreferredRate(float rate) throws StdQTException
rate
- Specifies the rate.public float getPreferredVolume() throws StdQTException
public void setPreferredVolume(float volume) throws StdQTException
volume
- Specifies the preferred volume setting of the movie.public float getVolume() throws StdQTException
public void setVolume(float volume) throws StdQTException
volume
- Specifies the current volume setting of the movie.public Matrix getMatrix() throws StdQTException
public void setMatrix(Matrix matrix) throws StdQTException
matrix
- the matrix to setpublic TimeInfo getPreviewTime() throws StdQTException
public void setPreviewTime(TimeInfo previewTimeInfo) throws StdQTException
previewTimeInfo
- a TimeInfo object.public void setPreviewTime(int previewTime, int previewDuration) throws StdQTException
public int getPosterTime() throws StdQTException
public void setPosterTime(int posterTime) throws StdQTException
posterTime
- the poster time.public TimeInfo getSelection() throws StdQTException
public void setSelection(TimeInfo selectionTimeInfo) throws StdQTException
selectionTimeInfo
- a TimeInfo object specifying the time information for movie's new selection.public void setSelection(int selectionTime, int selectionDuration) throws StdQTException
selectionTime
- Contains a time value specifying the starting point of the current selection.selectionDuration
- Contains a time value that specifies the duration of the current selection.public void setActiveSegment(TimeInfo activeSegmentTimeInfo) throws StdQTException
activeSegmentTimeInfo
- a TimeInfo object specifying the time information of the active segment.public TimeInfo getActiveSegment() throws StdQTException
public int getTime() throws StdQTException
public TimeRecord getTRTime() throws QTException
public void setTime(TimeRecord newtime) throws StdQTException
newtime
- A TimeRecord object specifying the new time for the movie.public void setTimeValue(int newtime) throws StdQTException
newTime
- Specifies the movie's new time value. .public UserData getUserData() throws StdQTException
public int getTrackCount() throws StdQTException
public Track getTrack(int trackID) throws QTException
trackID
- ID value of the track (from Track.getID())public Track getIndTrack(int index) throws QTException
index
- index value of the track in the movie (Moive.getTrackCount())public Track getIndTrackType(int index, int trackType, int flags) throws QTException
index
- Specifies the index value of the track for this operation. This is not that same as the track's index value in the movie. Rather, this parameter is an index into the set of tracks that meet your other selection criteria.trackType
- Contains either a media type or a media characteristic value.flags
- Contains flags that control the search operation.public void removeTrack(Track track) throws StdQTException
track
- the track to remove from this movie.public void setAutoTrackAlternatesEnabled(boolean enable) throws StdQTException
enable
- Controls automatic track selection.public void selectAlternates() throws StdQTException
public TimeInfo getNextInterestingTime(int interestingTimeFlags, int[] mediaTypes, int time, float rate) throws StdQTException
interestingTimeFlags
- Specifies the search criteria.mediaTypes
- Specifies an array of media typestime
- Specifies a time value that establishes the starting point for the search.rate
- Contains the search direction.public void insertEmptySegment(int dstIn, int dstDuration) throws StdQTException
public void insertSegment(Movie dstMovie, int srcIn, int srcDuration, int dstIn) throws StdQTException
dstMovie
- Specifies the destination movie for this operation.
Specifies the start of the segment in the source movie.
Specifies the duration of the segment in the source movie.
Contains a time value specifying where the segment is to be inserted.public void deleteSegment(int startTime, int duration) throws StdQTException
startTime
- Contains a time value specifying the starting point of the segment to be deleted.duration
- Contains a time value that specifies the duration of the segment to be deleted.public void scaleSegment(int startTime, int oldDuration, int newDuration) throws StdQTException
startTime
- Specifies the start of the segment.oldDuration
- Specifies the duration of the segment in the source movie.newDuration
- Specifies the new duration of the segment.public Movie cutSelection() throws QTException
public Movie copySelection() throws QTException
public void pasteSelection(Movie srcMovie) throws StdQTException
srcMovie
- Specifies the source movie for this operation.public void addSelection(Movie srcMovie) throws StdQTException
srcMovie
- Specifies the source movie for this operation.public void clearSelection() throws StdQTException
public void pasteHandle(QTHandle handle, int handleType, int flags, MovieImporter userComp) throws StdQTException
handle
- Specifies the handle to be pasted into the movie indicated by the handleType parameter.handleType
- Indicates the data type of the handle specified in the h parameter.flags
- Specifies a constant that further refines conditions of the paste operation.userComp
- Specifies the component or an instance of the component that is to perform the conversion of the data into a QuickTime movie.public QTHandle putIntoTypedHandle(Track targetTrack, int handleType, int start, int dur, int flags, MovieExporter userComp) throws QTException
targetTrack
- Specifies the track to convert.handleType
- Indicates the type of the new data.start
- Specifies the start time of the segment of the movie or track to be converted.dur
- Specifies the duration of the segment of the movie or track to be converted.flags
- Indicates condition of the conversion. Set this parameter to 0.userComp
- Indicates a component or component instance of the movie export component you
want to perform the conversion. Otherwise, set this parameter to 0 for the Movie Toolbox to
choose the appropriate component.public void copySettings(Movie dstMovie) throws StdQTException
dstMovie
- Specifies the destination movie for this operation.public Track addEmptyTrack(Track srcTrack, DataRef dataRef) throws QTException
srcTrack
- Specifies the Track object that will be used to determine the type and properties of the empty track.dataRef
- Specifies the default data reference for the empty track.public Track newTrack(float width, float height, float trackVolume) throws QTException
width
- Specifies the width of the track, in pixels.height
- Specifies the height of the track, in pixels.trackVolume
- Specifies the volume setting of the track.public Track addTrack(float width, float height, float trackVolume) throws QTException
width
- Specifies the width of the track, in pixels.height
- Specifies the height of the track, in pixels.trackVolume
- Specifies the volume setting of the track.public MovieEditState newEditState() throws QTException
public void useEditState(MovieEditState anEditState) throws StdQTException
anEditState
- Specifies the edit state for this operation.public int getDataSize(int startTime, int duration) throws StdQTException
startTime
- Contains a time value specifying the starting point of the segment.duration
- Contains a time value that specifies the duration of the segment.public boolean pointInMovie(QDPoint pt) throws StdQTException
pt
- Specifies the point to be checked.public void setLanguage(int language) throws StdQTException
language
- Specifies the movie's language or region code.public boolean hasChanged() throws StdQTException
public void clearChanged() throws StdQTException
public void setDefaultDataRef(DataRef newRef) throws StdQTException
newRef
- Specifies the default data reference object.public DataRef getDefaultDataRef() throws QTException
public void setColorTable(ColorTable ctab) throws StdQTException
ctab
- Specifies the new color table.public ColorTable getColorTable() throws QTException
public int flatten(int movieFlattenFlags, QTFile fileOut, int creator, int scriptTag, int createQTFileFlags, int resID, java.lang.String resName) throws QTException
movieFlattenFlags
- Controls the process of adding movie data to the new movie file.fileOut
- Contains writable movie file for the movie to be created.creator
- Specifies the creator value for the new file.scriptTag
- Specifies the script in which the movie file should be created.createQTFileFlags
- Controls file creation options.resId
- Contains the resource ID number for the new resource.resName
- A String with the name of the movie resource. If you set the resName parameter to null,
the toolbox creates an unnamed resource.public Movie flattenData(int movieFlattenFlags, QTFile fileOut, int creator, int scriptTag, int createQTFileFlags) throws QTException
movieFlattenFlags
- Controls the process of adding movie data to the new movie file.fileOut
- Contains writable movie file for the movie to be created.creator
- Specifies the creator value for the new file.scriptTag
- Specifies the script in which the movie file should be created.createQTFileFlags
- Controls file creation options.public Movie flattenData(int movieFlattenFlags, QTHandle handle) throws QTException
movieFlattenFlags
- Controls the process of adding movie data to the new movie file.handle
- the handle that is used to contain the new movie's data for the new movie that is returned.public void setProgressProc() throws StdQTException
public void setProgressProc(MovieProgress mp) throws StdQTException
mp
- the new MovieProgress objectpublic void addExecuteWiredActionsProc(ExecutingWiredAction wa) throws StdQTException
wa
- the new ExecutingWiredActions objectpublic void removeExecuteWiredActionsProc() throws StdQTException
public void executeWiredActions(int flags, AtomContainer actions) throws StdQTException
flags
- execution flagspublic SearchResult searchText(QTPointer text, int searchFlags, Track searchTrack, int searchTime, int searchOffset) throws QTException
text
- Specifies the text to be searched.searchFlags
- controls the operation of this method.searchTrack
- Specifes the track which you want to limit the search to that track.searchTime
- Specifes the starting time for the searchsearchOffset
- Specifes the offset in media samples. Search will begin from that offset.public SearchResult searchText(QTPointer text, int searchFlags, int searchTime, int searchOffset) throws QTException
text
- Specifies th etext to be searched.searchFlags
- controls the operation of this method.searchTime
- Specifes the starting time for the searchsearchOffset
- Specifes the offset in media samples. Search will begin from that offset.public QDRect getPosterBox() throws StdQTException
public void setPosterBox(QDRect boxRect) throws StdQTException
boxRect
- a Rectangle object specifying the poster box for the movie.public Region getSegmentDisplayBoundsRgn(int time, int duration) throws QTException
time
- Specifies the starting time of the movie segment to consider.duration
- Specifies the length of the segment to consider.public StatusInfo getStatus() throws QTException
public void showInformation() throws StdQTException
public void putOnScrap(int movieScrapFlags) throws StdQTException
movieScrapFlags
- Flags that control the operation.public void setPlayHints(int flags, int flagsMask) throws StdQTException
flags
- Specifies the optimizations that can be used with this movie.flagsMask
- Indicates which flags in the flags parameter are to be considered in this operation.public TimeBase getTimeBase() throws StdQTException
public void setMasterTimeBase(TimeBase tb, TimeRecord slaveZero) throws StdQTException
tb
- Specifies the master time base to be assigned to this movie.slaveZero
- Specifies the time, in the time scale of the master time base, that corresponds to a 0 time value for the movie.public void setMasterClock(Clock clockMeister, TimeRecord slaveZero) throws StdQTException
clockMeisterSpecifies
- the clock component to be assigned to this movie.slaveZero
- Contains the time, in the clock's time scale, that corresponds to a 0 time value for the movie.public int convertToFile(Track onlyTrack, QTFile outputFile, int fileType, int creator, int scriptTag) throws QTException
onlyTrack
- Specifies the track within the source movie for this conversion operation. To specify all tracks, set the value of this parameter to null.outputFile
- Specifies the destination file.fileType
- Specifies the data type of the destination file for the movie.creator
- Specifies the creator value for the output file if it is a new one.scriptTag
- Specifies the script into which the movie should be converted if the output file is a new one.public int convertToFile(QTFile outputFile, int fileType, int creator, int scriptTag) throws QTException
outputFile
- Specifies the destination file.fileType
- Specifies the data type of the destination file for the movie.creator
- Specifies the creator value for the output file if it is a new one.scriptTag
- Specifies the script into which the movie should be converted if the output file is a new one.public int convertToFile(QTFile outputFile, int fileType, int creator, int scriptTag, int flags) throws QTException
outputFile
- Specifies the destination file.fileType
- Specifies the data type of the destination file for the movie.creator
- Specifies the creator value for the output file if it is a new one.scriptTag
- Specifies the script into which the movie should be converted if the output file is a new one.flags
- the appropriate flags for this operationpublic int convertToFile(Track onlyTrack, QTFile outputFile, int fileType, int creator, int scriptTag, int flags, MovieExporter userComp) throws QTException
onlyTrack
- Specifies the track within the source movie for this conversion operation. To specify all tracks, set the value of this parameter to null.outputFile
- Specifies the destination file.fileType
- Specifies the data type of the destination file for the movie.creator
- Specifies the creator value for the output file if it is a new one.scriptTag
- Specifies the script into which the movie should be converted if the output file is a new one.flags
- the appropriate flags for this operationuserComp
- A ComponentIdentifier of type 'spit' that will be opened and used by this call to export the Moviepublic Track getQTVRTrack(int index) throws QTException
index
- this value indicates the nth VR Track to return. QT3.0 only supports one VR track so this
value should be set to 1.public java.lang.String toString()
toString
in class QTObject
public final boolean needsTimeTable() throws StdQTException
public final int maxLoadedTimeInMovie() throws StdQTException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |