Play a QuickTime movie in a window
Name | Type | Opt | Description |
---|---|---|---|
filename | symbol | opt | Specifies the name of a QuickTime movie file to be read into movie automatically when the patch is loaded. The same effect can be achieved for imovie by selecting the object in an unlocked patcher and choosing Get Info... from the Object menu to select a movie file. Both objects retain the name(s) of the movie(s) they have loaded at the time that the patch is saved, and attempt to load the same movie(s) the next time the patch is opened. |
bang | Same as | .|
int | time-location [int] |
Sets the current time location of the movie. If the movie is playing, it will play from the newly set location. 0 is always the beginning. The end time varies from one movie to another. (The | message reports the end time location out the left outlet.)
(drag) | When a QuickTIme movie file is dragged from the Max 5 File Browser to a movie object, the file will be loaded. | |
active | flag (0 or non-zero) [int] |
The word | , followed by a non-zero number, makes the movie active (the default). Followed by a 0, makes the movie inactive. An inactive movie will not play or change location.
(mouse) | Double-clicking on the movie object will make the movie window active. | |
dispose | filename [symbol] |
Closes the movie window if it is open, and removes all movies from the movie object's memory. If the word is followed by the name of a loaded movie, only the named movie will be removed. |
clear | Has the same effect as | with no arguments.|
duration | Reports the duration of the movie (in time units) out the left-most outlet. | |
getduration | Reports the end time position of the movie (in QuickTime Time Units) from the left outlet. | |
getrate | Reports the current rate multiplied by 65536 out the right outlet. Thus, normal speed is reported as | , half speed is reported as , double speed backward is reported as , etc. If the movie is not playing, the rate is reported as , and if no movie has yet been loaded nothing is sent out.|
gettime | Reports the current time location of the movie. | |
ff | The word | fast-forwards the movie.|
length | The | message's functionality is equivalent to the message.|
loadintoram | flag (0 or non-zero) [int] |
The word | , followed by a non-zero number, attempts to load the entire movie into memory, if possible. The default is 0.
next | time-units [int] |
The word | , followed by a number, moves the time location ahead by that amount. If no number is supplied, moves the time ahead by 5. (The actual time meaning of these units varies from movie to movie.)
nextmovie | Stops the movie if it is playing, and switches to the movie that was loaded just prior to the current movie. (The movies are stored in reverse order from the order in which they were loaded.) If there is no prior movie, | wraps around back to the most recently loaded movie. Note that the title of the movie window is not automatically changed, even though the "current movie" has been changed by .|
matrix | transformation-matrix (9 floats) [list] |
The word The transform matrix operation consists of nine matrix elements |
, followed by nine floating point numbers, reloads the current movie into RAM after performing a transformation matrix operation on the image. This transformation is the same one used for the mapping in QuickTime of points from one coordinate space (i.e, the original image) into another coordinate space (a scaled, rotated, or translated version of the original image).
mute | flag (0 or non-zero) [int] |
The word | , followed by a non-zero number, turns off the movie's sound (if it has any). Followed by a 0, turns on the movie's sound (the default).
loop | flag (0 or non-zero) [int] |
The word 0: looping off (default) 1: looping on 2: palindrome mode (forward and then backward) |
, followed by a number in the range 0-2, controls looping for the current film on. The options are:
loopend | end-point [int] |
The word | , followed by a number, sets the end point of a loop. The default value is corresponds to the end of the film.
looppoints |
beginning-point [int] end-point [int] |
The word | , followed by two numbers, sets the beginning and end points of a loop. the default values are 0 (i.e., the start of the film) for the start point and the end of the film for the endpoint.
loopset |
beginning-point [int] end-point [int] |
The | message's functionality is equivalent to the message.
loopstart | beginning-point [int] |
The word | , followed by a number, sets the beginning point of a loop. The default value is 0 (i.e., the start of the film).
pause | Stops the movie. | |
pos | position-index [float] |
The word | followed by a floating-point number which denotes a position-index within the movie will cause the playback-position to jump to the specified position in the movie.
prev | time-units [int] |
The word | , followed by a number, moves the time location backward by that amount. If no number is supplied, moves the time backward by 5.
open | Brings the movie window to the foreground (applies only to movie, not imovie). | |
palindrome | flag (0 or non-zero) [int] |
The word | , followed by a non-zero number, sets the movie to play in palindrome mode (forward and then backward). Looping must be turned on. (the default) disables palindrome mode.
rate | playback-speed [list] |
The word | , followed by one or more integers or floats, sets the playing speed of the movie. If is followed by one integer, that number is taken to be a whole number playing speed. If is followed by two numbers, the first number is taken to be the numerator and the second the denominator of a fractional speed. is the normal playing speed, means the movie is stopped, and a negative rate plays backwards. would play the movie at half speed. Immediately after you send a non-zero message, the movie will begin playing, so you may wish to precede any messages with an integer to locate to the desired starting position.
read | filename [symbol] |
The word | , followed by a symbol, looks for a QuickTime movie file with that name in Max's file search path, and opens it if it exists, displaying the movie's first frame in a movie window. If the filename contains any spaces or special characters, the name should be enclosed in double quotes or each special character should be preceded by a backslash ( ). The word by itself puts up a standard Open Document dialog box and reads in any movie file you select. The message will open at least 26 different types of files that can be opened by QuickTime, these include movie files such as MPEG, audio files including AIFF and MP3, and graphics files including GIF and JPEG.
readany | filename [symbol] |
The | message opens any type of file, using QuickTime routines to try to interpret it as a movie or other supported media file.
quality | minimum-redraw-interval (milliseconds) [int] |
The word | , followed by a number, sets the minimum interval, in milliseconds, between movie redraws. The default is 0 (i.e., no minimum).
passive | mode-flag (0 or non-zero) [int] |
The word | , followed by a non-zero number, sets the passive mode. In passive mode, starting a movie will not cause the frame to change unless a bang message is received. (the default) sets the movie object to respond to normal messages.
start | filename [symbol] |
Sets the movie's rate to 1 and begins playing from the beginning. If the word | is followed by the name of a specific loaded movie, that movie becomes the current movie before starting.
startat | time-location [list] |
The word | , followed by a number, set the current time location of the movie and begins playing from that point.
stop | Stops the movie. | |
rd | filename [symbol] |
Same as | .
rect |
x-position-coordinate [int] y-position-coordinate [int] width (pixels) [int] height (pixels) [int] |
The word | , followed by four numbers, specifies the size of the rectangle in which the movie is displayed within the movie window. The first two numbers specify the position of the rectangle within the movie window, in relative coordinates, and the second two numbers specify the width and height, in pixels, of the rectangle.
resume | Begins playing the movie from its current location, at the most recently specified rate. | |
switch | filename [symbol] |
The word | , followed by a symbol, makes the named movie the active one without changing the transport state (See the message).
reload | The word | will reload the current movie into memory (can be used to refresh; for example, if a movie is playing and the message is sent followed by , the movie will reload into memory and be set to play from the beginning as a newly loaded movie).|
rw | The word | rewinds the movie.|
time | frame-number [list] |
The word | , followed by a number that specifies a QuickTime frame number, goes to the time location specified by the number. When no argument is present, the message's functionality is equivalent to the message.
timescale | Reports the timescale of the movie out the left-most outlet. | |
toggleplay | The word | activates or pauses playback of the movie.|
vol | volume-setting (0 through 255) [int] |
The word | , followed by a number in the range 1-255, sets the movie's sound volume. Optionally, the volume can be set by using the word , followed by a floating-point value in the range 0. - 1.0.
wclose | Closes the movie window. | |
windowpos |
left-coordinate [int] top-coordinate [int] right-coordinate [int] bottom-coordinate [int] |
The word movie object, not the imovie object. | , followed by four numbers, specifies the location and size of the movie window on the screen. The four numbers specify the left, top, right, and bottom of the movie window in global coordinates. This message is only supported by the
Name | Type | g/s | Description |
---|---|---|---|
autofit | int def.:0 |
Toggles scaling the movie to fit in the window currently displayed. | |
border | int def.:1 |
Toggles the movie’s border type. The message | (the default) uses the traditional Macintosh-style border for the movie window. The message displays only the rectangle in which the movie plays.|
name | symbol | Name of the movie file loaded. |
Name | Description |
---|---|
imovie | Play a QuickTime movie in a patcher window |