mediaplayer.html

来自「jmf api 帮助文档 jmf开发人员必读」· HTML 代码 · 共 1,608 行 · 第 1/5 页

HTML
1,608
字号
keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus</CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="gainControl"><!-- --></A><H3>gainControl</H3><PRE>protected transient <A HREF="../../../../javax/media/GainControl.html">GainControl</A> <B>gainControl</B></PRE><DL></DL><HR><A NAME="curVolumeLevel"><!-- --></A><H3>curVolumeLevel</H3><PRE>protected transient java.lang.String <B>curVolumeLevel</B></PRE><DL></DL><HR><A NAME="curVolumeValue"><!-- --></A><H3>curVolumeValue</H3><PRE>protected transient float <B>curVolumeValue</B></PRE><DL></DL><HR><A NAME="curZoomLevel"><!-- --></A><H3>curZoomLevel</H3><PRE>protected transient java.lang.String <B>curZoomLevel</B></PRE><DL></DL><HR><A NAME="curZoomValue"><!-- --></A><H3>curZoomValue</H3><PRE>protected transient float <B>curZoomValue</B></PRE><DL></DL><HR><A NAME="mediaTime"><!-- --></A><H3>mediaTime</H3><PRE>protected transient <A HREF="../../../../javax/media/Time.html">Time</A> <B>mediaTime</B></PRE><DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="MediaPlayer()"><!-- --></A><H3>MediaPlayer</H3><PRE>public <B>MediaPlayer</B>()</PRE><DL><DD>Constructs a MediaPlayer with its main panel preparing for    caching control events and the following visual display.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getMediaLocation()"><!-- --></A><H3>getMediaLocation</H3><PRE>public java.lang.String <B>getMediaLocation</B>()</PRE><DL><DD>Gets the value of the media location property for this <CODE>MediaPlayer</CODE>.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A <CODE>String</CODE> that contains the media location.</DL></DD></DL><HR><A NAME="getMediaLocator(java.lang.String)"><!-- --></A><H3>getMediaLocator</H3><PRE>protected <A HREF="../../../../javax/media/MediaLocator.html">MediaLocator</A> <B>getMediaLocator</B>(java.lang.String&nbsp;filename)</PRE><DL><DD>Gets a <CODE>MediaLocator</CODE> for this <CODE>MediaPlayer</CODE> that corresponds to the specified <CODE>String</CODE>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - A <CODE>String</CODE> that contains the media name  from which to create the <CODE>MediaLocator</CODE>.<DT><B>Returns:</B><DD>A <CODE>MediaLocator</CODE> that corresponds to the specified <CODE>String</CODE>.</DL></DD></DL><HR><A NAME="setMediaLocation(java.lang.String)"><!-- --></A><H3>setMediaLocation</H3><PRE>public void <B>setMediaLocation</B>(java.lang.String&nbsp;location)</PRE><DL><DD>Sets the media location property for this <CODE>MediaPlayer</CODE>.   This property specifies the location of the media file to be    presented by the <CODE>MediaPlayer</CODE>.   If a <CODE>Player</CODE> already exists for this <CODE>MediaPlayer</CODE>,    this method stops that <CODE>Player</CODE> and releases all   of the resources it is using.  Then a new <CODE>Player</CODE> is created to   present the specified media file.   All controller listeners  registered  for the old   <CODE>Player</CODE> are added to the listener list of the new <CODE>Player</CODE>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>location</CODE> - A <CODE>String</CODE> that contains the location of the media file.</DL></DD></DL><HR><A NAME="setMediaLocator(javax.media.MediaLocator)"><!-- --></A><H3>setMediaLocator</H3><PRE>public void <B>setMediaLocator</B>(<A HREF="../../../../javax/media/MediaLocator.html">MediaLocator</A>&nbsp;locator)</PRE><DL><DD>Sets the <CODE>MediaLocator</CODE> for this <CODE>MediaPlayer</CODE>. This     method creates a <CODE>Player</CODE> for the specified <CODE>MediaLocator</CODE>.    If a <CODE>Player</CODE> already exists for this <CODE>MediaPlayer</CODE>,    this method stops that <CODE>Player</CODE> and releases all   of the resources it is using.  Then a new <CODE>Player</CODE> is created with   the specified <CODE>MediaLocator</CODE>.   All controller listeners  registered  for the old   <CODE>Player</CODE> are added to the listener list of the new <CODE>Player</CODE>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>locator</CODE> - A <CODE>MediaLocator</CODE> that identifies the media file to be  presented by the <CODE>MediaPlayer</CODE>.</DL></DD></DL><HR><A NAME="setDataSource(javax.media.protocol.DataSource)"><!-- --></A><H3>setDataSource</H3><PRE>public void <B>setDataSource</B>(<A HREF="../../../../javax/media/protocol/DataSource.html">DataSource</A>&nbsp;ds)</PRE><DL><DD>Sets the <CODE>DataSource</CODE> for this <CODE>MediaPlayer</CODE>. This     method creates a <CODE>Player</CODE> for the specified <CODE>DataSource</CODE>.    If a <CODE>Player</CODE> already exists for this <CODE>MediaPlayer</CODE>,    this method stops that <CODE>Player</CODE> and releases all   of the resources it is using.  Then a new <CODE>Player</CODE> is created with   the specified <CODE>DataSource</CODE>.   All controller listeners  registered  for the old   <CODE>Player</CODE> are added to the listener list of the new <CODE>Player</CODE>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ds</CODE> - A <CODE>DataSource</CODE> that identifies the media file to be  presented by the <CODE>MediaPlayer</CODE>.</DL></DD></DL><HR><A NAME="setPlayer(javax.media.Player)"><!-- --></A><H3>setPlayer</H3><PRE>public void <B>setPlayer</B>(<A HREF="../../../../javax/media/Player.html">Player</A>&nbsp;newPlayer)</PRE><DL><DD>Specifies an existing <CODE>Player</CODE> to use to present media    for this <CODE>MediaPlayer</CODE>.   If a <CODE>Player</CODE> already exists for this <CODE>MediaPlayer</CODE>,    this method stops that <CODE>Player</CODE> and releases all   of the resources it is using.     All controller listeners  registered  for the old   <CODE>Player</CODE> are added to the listener list of the new <CODE>Player</CODE>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newPlayer</CODE> - The <CODE>Player</CODE> to use to present media data for  this <CODE>MediaPlayer</CODE>.</DL></DD></DL><HR><A NAME="getPlaybackLoop()"><!-- --></A><H3>getPlaybackLoop</H3><PRE>public boolean <B>getPlaybackLoop</B>()</PRE><DL><DD>Gets the loop property for this <CODE>MediaPlayer</CODE>. This property indicates whether the <CODE>MediaPlayer</CODE> should play the media stream  repeatedly or stop when the end of media is reached.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE> if loop is enabled, <CODE>false</CODE> if the media stream  is to be played only once.</DL></DD></DL><HR><A NAME="setPlaybackLoop(boolean)"><!-- --></A><H3>setPlaybackLoop</H3><PRE>public void <B>setPlaybackLoop</B>(boolean&nbsp;val)</PRE><DL><DD>Sets the loop property for this <CODE>MediaPlayer</CODE>.  This property indicates whether the <CODE>MediaPlayer</CODE> should play the media stream  repeatedly or stop when the end of media is reached.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>val</CODE> - The boolean value for the loop property. Specify <CODE>true</CODE>  to enable looping, <CODE>false</CODE> if the media stream  is to be played only once.</DL></DD></DL><HR><A NAME="isPlayBackLoop()"><!-- --></A><H3>isPlayBackLoop</H3><PRE>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?