<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="playbar" module="max" category="U/I">
	<digest>
		Control video or audio file playback
	</digest>
	<description>
		Interacts with <o>movie</o>, <o>imovie</o>, <o>sfplay~</o> or <o>jit.movie</o> to control the playback, position and looping of the media
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Commands For Controller and Its Movie
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				Connect to Movie to be Controlled
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="OUTLET_TYPE">
			<digest>
				Command Numbers
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<palette category="Buttons, Interface, Images" action="playbar" pic="playbar.svg" />
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="OBJARG_NAME" type="OBJARG_TYPE" optional="0">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Link to a movie player
			</digest>
			<description>
				If the left outlet of a <o>playbar</o> object is connected to a <o>movie</o> or <o>imovie</o> object, <m>bang</m> links the two objects together so the <o>playbar</o> can control the QuickTime movie. After <o>playbar</o> and <o>movie</o> are linked, any messages sent to the <o>movie</o> object which change its location or playing status are reflected in the <o>playbar</o> object. (Linking will happen automatically when a patcher file containing connected <o>playbar</o> and <o>movie</o> objects is loaded. Thus, sending the <m>bang</m> to <o>playbar</o> is only necessary when you're building a patch.)
			</description>
		</method>
		<method name="(mouse)">
			<digest>
				Manipulate movie playback
			</digest>
			<description>
				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.
			</description>
		</method>
		<method name="loop">
			<arglist>
				<arg name="flag" optional="0" type="int" />
			</arglist>
			<digest>
				Sets looping mode
			</digest>
			<description>
				The word <m>loop</m> followed by a non-zero number will turn looping on; <m>loop</m> followed by a 0 will turn looping off.
			</description>
		</method>
		<method name="palindrome">
			<arglist>
				<arg name="flag" optional="0" type="int" />
			</arglist>
			<digest>
				Set palidrome playback mode
			</digest>
			<description>
				The word <m>palindrome</m> followed by a non-zero number will turn palindrome-playback on (loop forward and backwards); <m>palindrome</m> followed by a 0 will turn palindrome-playback off. Looping must be turned on for palindrome-playback.
				<br />
				Note: the palindrome mode of playback does not work with the <o>sfplay~</o> object.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="bgcolor" get="1" set="1" type="float" size="4">
			<digest>
				Background Color
			</digest>
			<description>
				TEXT_HERE
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="7.0.0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Background Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="preview" get="1" set="1" type="symbol" size="1" value="rect_fill" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="set" get="1" set="1" type="pointer" size="1" value="pointer" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="color" get="1" set="1" type="float" size="4">
			<digest>
				Controls Color
			</digest>
			<description>
				TEXT_HERE
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="7.0.0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Controls Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="preview" get="1" set="1" type="symbol" size="1" value="triangle_fill" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="set" get="1" set="1" type="pointer" size="1" value="pointer" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="disabledcolor" get="1" set="1" type="float" size="4">
			<digest>
				Disabled Color
			</digest>
			<description>
				TEXT_HERE
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="7.0.0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Disabled Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="preview" get="1" set="1" type="symbol" size="1" value="triangle_fill" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="set" get="1" set="1" type="pointer" size="1" value="pointer" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
				<attribute name="stylemap" get="1" set="1" type="symbol" size="1" value="accentcolor" />
			</attributelist>
		</attribute>
		<attribute name="hideloop" get="1" set="1" type="int" size="1">
			<digest>
				Hide loop control
			</digest>
			<description />
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Appearance" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Hide Loop" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="hiderwff" get="1" set="1" type="int" size="1">
			<digest>
				Hide rewind/forward controls
			</digest>
			<description>
				Hide the rewind/forward controls
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Appearance" />
				<attribute name="default" get="1" set="1" type="int" size="1" value="0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Hide Rewind/Forward" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="onoff" />
			</attributelist>
		</attribute>
		<attribute name="refreshrate" get="1" set="1" type="float" size="1">
			<digest>
				Refresh Rate (fps)
			</digest>
			<description>
				TEXT_HERE
			</description>
			<attributelist>
				<attribute name="default" get="1" set="1" type="float" size="1" value="30." />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Refresh Rate (fps)" />
			</attributelist>
		</attribute>
		<attribute name="selectioncolor" get="1" set="1" type="float" size="4">
			<digest>
				Selection Color
			</digest>
			<description>
				TEXT_HERE
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="category" get="1" set="1" type="atom" size="1" value="Color" />
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="7.0.0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Selection Color" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="preview" get="1" set="1" type="symbol" size="1" value="rect_fill" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="set" get="1" set="1" type="pointer" size="1" value="pointer" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="rgba" />
			</attributelist>
		</attribute>
		<attribute name="style" get="1" set="1" type="symbol" size="1">
			<digest>
				Style
			</digest>
			<description>
				Sets the <link type="vignette" module="core" name="styles">style</link> to be applied to the object. Styles can be set using the <link type="vignette" module="core" name="format_palette">Format palette</link>.
			</description>
			<attributelist>
				<attribute name="category" get="1" set="1" type="symbol" size="1" value="Appearance" />
				<attribute name="introduced" get="1" set="1" type="symbol" size="1" value="7.0.0" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Style" />
				<attribute name="paint" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="style" />
			</attributelist>
		</attribute>
	</attributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example img="playbar.png" caption="Using playbar with movie and imovie" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="jit.movie" />
		<seealso name="movie" />
		<seealso name="imovie" />
	</seealsolist>
	<misc name="Output">
		<entry name="(internal)">
			<description>
				Out left outlet: Once the <o>playbar</o> and a <o>movie</o> object are linked, the <o>playbar</o> controls the QuickTime movie. <o>playbar</o> only supports being connected to one <o>movie</o> object at a time. The connection must be made with a patch cord; it cannot take place via a <o>send</o>- <o>receive</o> pair.
			</description>
		</entry>
		<entry name="int">
			<description>
				Out right outlet: Each command processed by <o>playbar</o> 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 <o>playbar</o> for other purposes besides movie control. However, the &quot;thumb&quot; in the controller has no range until an associated QuickTime movie with a non-zero duration is linked to the <o>playbar</o>.
			</description>
		</entry>
	</misc>
</c74object>
