playbar Reference

Control video or audio file playback

playbar

Description

Interacts with movie, imovie, sfplay~ or jit.movie to control the playback, position and looping of the media

Examples

Using playbar with movie and imovie

Arguments

None.

Attributes

bgcolor [4 floats]7.0.0

Sets the background color of the playbar object in RGBA format.

color [4 floats]7.0.0

Sets the color of the controls for the playbar object in RGBA format.

disabledcolor [4 floats]7.0.0

Sets the controls color of the playbar object in RGBA format when the object is disabled.

hideloop [int] (default: 0)

Hide loop control

hiderwff [int] (default: 0)

Hide the rewind/forward controls

refreshrate [float] (default: 30.)

When playbar is controlling a jit.movie, the refreshrate attribute sets the rate in fps at which the movie is played back.

selectioncolor [4 floats]7.0.0

Sets the selection color of the playbar object in RGBA format.

style [symbol] (default: )7.0.0

Sets the style to be applied to the object. Styles can be set using the Format palette.

Common Box Attributes

Messages

bang

If the left outlet of a playbar object is connected to a movie or imovie object, bang links the two objects together so the playbar can control the movie. After playbar and movie are linked, any messages sent to the movie object which change its location or playing status are reflected in the playbar object. (Linking will happen automatically when a patcher file containing connected playbar and movie objects is loaded. Thus, sending the bang to playbar is only necessary when you're building a patch.)

loop

Arguments

flag [int]
The word loop followed by a non-zero number will turn looping on; loop followed by a 0 will turn looping off.

(mouse)

Clicking and dragging with the mouse can be used to start/stop a movie, rewind/fast-forward it, or to select a particular point in the movie.

palindrome

Arguments

flag [int]
The word palindrome followed by a non-zero number will turn palindrome-playback on (loop forward and backwards); palindrome followed by a 0 will turn palindrome-playback off. Looping must be turned on for palindrome-playback.
Note: the palindrome mode of playback does not work with the sfplay~ object.

Output

(internal)

Out left outlet: Once the playbar and a movie object are linked, the playbar controls the movie. playbar only supports being connected to one movie object at a time. The connection must be made with a patch cord; it cannot take place via a send- receive pair.

int

Out right outlet: Each command processed by playbar is sent by number out its right outlet. A directory of command numbers and their meaning can be found in the QuickTime Standard Movie Play Controller documentation. By properly interpreting these commands, you can potentially use playbar for other purposes besides movie control. However, the "thumb" in the controller has no range until an associated movie with a non-zero duration is linked to the playbar.

See Also

Name Description
jit.movie
movie
imovie