<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
<!--ArborText, Inc., 1988-1999, v.4002-->
<!--ARC : LSARC 2002/337 Media Player for Sun Gnome Desktop-->
<!ENTITY cmd "jmplay">
<!ENTITY % commonents SYSTEM "smancommon.ent">
%commonents;
<!ENTITY % booktitles SYSTEM "booktitles.ent">
%booktitles;
<!ENTITY suncopy "Copyright (c) 2003,2006 Sun Microsystems, Inc. All Rights Reserved.">
]>
<refentry id="jmplay-1">
<!-- %Z%%M% %I% %E% SMI; -->
<refmeta>
<refentrytitle>jmplay</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="date">9 Jan 2003</refmiscinfo>
<refmiscinfo class="sectdesc">&man1;</refmiscinfo>
<refmiscinfo class="software">&release;</refmiscinfo>
<refmiscinfo class="arch">generic</refmiscinfo>
<refmiscinfo class="copyright">&suncopy;</refmiscinfo>
</refmeta>
<indexterm><primary>jmplay</primary></indexterm>
<indexterm><primary>play multimedia files</primary></indexterm>
<refnamediv id="jmplay-1-name">
<refname>jmplay</refname>
<refname>jmplay.bin</refname>
<refpurpose>play multimedia files</refpurpose>
</refnamediv>
<refsynopsisdiv id="jmplay-1-synp"><title>&synp-tt;</title>
<cmdsynopsis><command>&cmd;</command>
<arg choice="opt"><option>-java-property=<replaceable>value</replaceable></option></arg>
<arg choice="opt"><option>-java-option=<replaceable>JVM-option</replaceable></option></arg>
<arg choice="opt"><option>jre=<replaceable>path-to-java</replaceable></option></arg>
<arg choice="opt"><option>-help</option></arg>
<group>
<arg choice="plain"><option role="nodash"><replaceable>url</replaceable></option></arg>
<arg choice="plain"><option role="nodash"><replaceable>file</replaceable></option></arg>
<arg choice="plain"><option role="nodash"><replaceable>mrl</replaceable></option></arg>
</group>
</cmdsynopsis></refsynopsisdiv>

<refsect1 id="jmplay-1-desc"><title>&desc-tt;</title>
<para>
<command>&cmd;</command> is a Java program based on Java Media Framework.
<command>&cmd;</command> supports synchronization, control, processing, and
presentation of compressed streaming and stored time-based media, including
video, audio and MIDI across all Java-enabled platforms.
<command>&cmd;</command> uses
<citerefentry><refentrytitle>gconftool-2</refentrytitle>
<manvolnum>1</manvolnum></citerefentry>,
if available, to identify the proxy host and proxy port to access a URL outside
the firewall.
</para>
<para>
The <command>&cmd;</command> GUI consists of File, Player, and Help pull-down
menus. You can use the File menu to Start new player, Open File, Open URL,
select a recently opened media URL, Close Player, or Exit jmplay.  The Player
menu has options to Auto Play, Auto Rewind, and Loop. The Help menu provides a
Content option which you can use to access the online help files.
</para>
</refsect1>

<refsect1 id="jmplay-1-opts"><title>&opts-tt;</title>
<para>
The following options are supported:
</para>
<variablelist termlength="wide"><varlistentry>
<term><option>-help</option></term>
<listitem><para>
Display the list of available options.
</para></listitem>
</varlistentry>
<varlistentry>
<term><option>J</option>, <option>-java-option=<replaceable>JVM-option</replaceable></option></term>
<listitem><para>
Specify an option that the JVM understands.
</para></listitem>
</varlistentry>
<varlistentry>
<term><option>D</option>, <option>-java-property=<replaceable>value</replaceable></option></term>
<listitem><para>
Specify a Java property to be used within the Java program.
</para></listitem>
</varlistentry>
<varlistentry>
<term><option>jre=<replaceable>path-to-java</replaceable></option></term>
<listitem><para>
Specify an alternate JVM other than the one in the PATH.
</para></listitem>
</varlistentry>
</variablelist>
</refsect1>

<refsect1 id="jmplay-1-oper"><title>&oper-tt;</title>
<para>
The following operands are supported:
</para>
<variablelist termlength="wide">
<varlistentry>
<term><option role="nodash"><replaceable>url</replaceable></option> | <option role="nodash"><replaceable>file</replaceable></option> | <option role="nodash"><replaceable>mrl</replaceable></option></term>
<listitem><para>
The Java Media Player takes multiple formatted media names, including
<replaceable>url</replaceable>, text file, or <replaceable>mrl</replaceable>,
as input. If no media name is specified, a player simply starts.
</para></listitem>
</varlistentry>
</variablelist>
</refsect1>

<refsect1 id="jmplay-1-exde"><title>&exde-tt;</title>
<para>
The following file formats are supported:
</para>
<variablelist><varlistentry>
<term>AIFF (<filename>.aiff</filename>)</term>
<listitem><para>
8 bits mono/stereo linear, 16 bits mono/stereo linear, G.711 (u-law), A-law,
IMA4 ADPCM
</para></listitem>
</varlistentry>
<varlistentry>
<term>AVI (<filename>.avi</filename>)</term>
<listitem><para>
Audio: 8 bits mono/stereo linear, 16 bits mono/stereo linear, DVI ADPCM
compressed, G.711 (u-law) mono, A-law, GSM mono
</para>
<para>
Video: Cinepak, JPEG (411, 422, 111), RGB, YUV
</para></listitem>
</varlistentry>
<varlistentry>
<term>GSM (<filename>.gsm</filename>)</term>
<listitem><para>
GSM mono audio
</para></listitem>
</varlistentry>
<varlistentry>
<term>HotMedia (<filename>.mvr</filename>)</term>
<listitem><para>
IBM hot media
</para></listitem>
</varlistentry>
<varlistentry>
<term>MIDI (<filename>.midi</filename>)</term>
<listitem><para>
Type 1 &amp; 2 MIDI audio files
</para></listitem>
</varlistentry>
<varlistentry>
<term>MPEG-1 (<filename>.mpg</filename>) </term>
<listitem><para>
(not available on Solaris x86)
</para>
<para>
Video: MPEG-1
</para>
<para>
Audio: MPEG-1, Layer 1 and 2
</para></listitem>
</varlistentry>
<varlistentry>
<term>MPEG audio (<filename>.mp2</filename>)</term>
<listitem>
<para>
(not available on Solaris x86)
</para>
<para>
MPEG layer 1 or 2 audio
</para></listitem>
</varlistentry>
<varlistentry>
<term>Quicktime (<filename>.mov</filename>)</term>
<listitem><para>
Audio: 8 bits mono/stereo linear, 16 bits mono/stereo linear, A-law, G.711
mono, GSM mono, IMA4 ADPCM, u-law
</para>
<para>
Video: Cinepak, H.261, H.263, JPEG (411, 422, 111), RGB
</para></listitem>
</varlistentry>
<varlistentry>
<term>Sun Audio (<filename>.au</filename>)</term>
<listitem><para>
8 bits mono/stereo linear, 16 bits mono/stereo linear, A-law, G.711 mono
</para></listitem>
</varlistentry>
<varlistentry>
<term>Wave (<filename>.wav</filename>)</term>
<listitem><para>
8 bits mono/stereo linear, 16 bits mono/stereo linear, G.711 mono, A-law, GSM
mono, DVI ADPCM, MSADPCM
</para></listitem>
</varlistentry>
<varlistentry>
<term>RTP Formats</term>
<listitem><para>
Audio: 4 bits mono DVI 8 kHz, 4 bits mono DVI 11.05 kHz, 4 bits mono DVI 22.05
kHz, 4 bits mono DVI 44.1 kHz, G.711 8 kHz, GSM mono, G.723 mono, MPEG Layer I,
II
</para>
<para>
Video: JPEG (411, 422, 111), H.261, H.263
</para></listitem>
</varlistentry>
</variablelist>
</refsect1>

<refsect1 id="jmplay-1-exam"><title>&exam-tt;</title>
<example role="example"><title>Opening a media file using a file URL</title>
<para><screen>example% <userinput>&cmd; <literal>file:///file/path/filename</literal></userinput></screen></para>
</example>
<example role="example"><title>Opening a media file using http</title>
<para><screen>example% <userinput>&cmd; <literal>http://website/foo/media.ext</literal></userinput></screen></para>
</example>
<example role="example"><title>Changing the size of the initial memory pool
for JVM</title>
<para><screen>example% <userinput>&cmd; --java-option="-Xms1000m"</userinput></screen></para>
</example>
</refsect1>

<refsect1 id="jmplay-1-envr"><title>&envr-tt;</title>
<para>
See
<citerefentry><refentrytitle>environ</refentrytitle>
<manvolnum>5</manvolnum></citerefentry>
for descriptions of the following environment variables:
</para>
<variablelist><varlistentry>
<term>CLASSPATH</term>
<listitem><para>
Specifies the location of the directory containing the
<filename>soundbank.gm</filename> file.
</para></listitem>
</varlistentry>
<varlistentry>
<term>DISPLAY</term>
<listitem><para>
Used by <command>&cmd;</command> to create the location of the internal
communication pipe.
</para></listitem>
</varlistentry>
</variablelist>
</refsect1>

<refsect1 id="jmplay-1-exit"><title>&exit-tt;</title>
<para>
The following exit values are returned:
</para>
<variablelist termlength="xtranarrow">
<varlistentry>
<term><returnvalue>0</returnvalue></term>
<listitem><para>
Application exited successfully
</para></listitem>
</varlistentry>
<varlistentry>
<term><returnvalue>>0</returnvalue></term>
<listitem><para>
Application exited with failure
</para></listitem>
</varlistentry>
</variablelist>
</refsect1>

<refsect1 id="jmplay-1-file"><title>&file-tt;</title>
<para>
The following files are used by this application:
</para>
<variablelist termlength="medium">
<varlistentry>
<term><filename>/usr/bin/&cmd;</filename></term>
<listitem><para>
Executable for Java Media Player
</para></listitem>
</varlistentry>
<varlistentry>
<term><filename>~/.mediaplayer</filename></term>
<listitem><para>
Stores user-specific configuration data, including the list of recently opened
media data.
</para></listitem>
</varlistentry>
</variablelist>
</refsect1>

<refsect1 id="jmplay-1-attr"><title>&attr-tt;</title>
<para>
See
<olink targetdocent="REFMAN5" localinfo="attributes-5">
<citerefentry><refentrytitle>attributes</refentrytitle>
<manvolnum>5</manvolnum></citerefentry></olink>
for descriptions of the following attributes:
</para>
<informaltable frame="all">
<tgroup cols="2" colsep="1" rowsep="1">
<colspec colname="COLSPEC0" colwidth="1*">
<colspec colname="COLSPEC1" colwidth="1*">
<thead>
<row>
<entry align="center" valign="middle">ATTRIBUTE TYPE</entry>
<entry align="center" valign="middle">ATTRIBUTE VALUE</entry>
</row>
</thead>
<tbody>
<row>
<entry><para>Availability</para></entry>
<entry><para>SUNWdesktop-media-player</para></entry>
</row>
<row>
<entry colname="COLSPEC0"><para>Interface stability</para></entry>
<entry colname="COLSPEC1"><para>Volatile</para></entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="jmplay-1-also"><title>&also-tt;</title>
<!--Reference to another man page-->
<!--Reference to a Help manual-->
<!--Reference to a book.-->
<para>
<citerefentry><refentrytitle>gconftool-2</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
<citerefentry><refentrytitle>gnome-network-properties</refentrytitle><manvolnum>1</manvolnum></citerefentry>
</para>
<para>
<literal>http://java.sun.com</literal>
</para>
</refsect1>

<refsect1 id="jmplay-1-note"><title>&note-tt;</title>
<para><citerefentry><refentrytitle>sdtjmplay</refentrytitle><manvolnum>1</manvolnum>
</citerefentry> is now obsolete and may be removed in a future release.</para>
<para>Written by Ghee Teo, Sun Microsystems Inc., 2003, 2006.</para>
</refsect1>
</refentry>
