⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mediaplayer.html

📁 JMF原版英文说明文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
public boolean <B>isPlayBackLoop</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="setZoomTo(java.lang.String)"><!-- --></A><H3>setZoomTo</H3><PRE>public void <B>setZoomTo</B>(java.lang.String&nbsp;scale)</PRE><DL><DD>Sets the zoom property for this <CODE>MediaPlayer</CODE>. This property specifies a scale factor for the visual components. When <CODE>zoom</CODE> is called, the  visual components are resized accordingly.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>scale</CODE> - A <CODE>String</CODE> that specifies the zoom factor. Possible values are     <CODE>Scale 1:2</CODE>, <CODE>Scale 1:1</CODE>, <CODE>Scale 2:1</CODE>,   and <CODE>Scale 4:1</CODE>.</DL></DD></DL><HR><A NAME="getZoomTo()"><!-- --></A><H3>getZoomTo</H3><PRE>public java.lang.String <B>getZoomTo</B>()</PRE><DL><DD>Gets the zoom property for this <CODE>MediaPlayer</CODE>.  This property specifies a scale factor for the visual components.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A <CODE>String</CODE> that specifies the zoom factor. Possible values are  <CODE>Scale 1:2</CODE>, <CODE>Scale 1:1</CODE>, <CODE>Scale 2:1</CODE>,   and <CODE>Scale 4:1</CODE>.</DL></DD></DL><HR><A NAME="getControlPanelHeight()"><!-- --></A><H3>getControlPanelHeight</H3><PRE>public int <B>getControlPanelHeight</B>()</PRE><DL><DD>Gets the height of the control <CODE>Component</CODE> for this <CODE>MediaPlayer</CODE>.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The control <CODE>Component</CODE> height as an integer.</DL></DD></DL><HR><A NAME="getMediaLocationHeight()"><!-- --></A><H3>getMediaLocationHeight</H3><PRE>public int <B>getMediaLocationHeight</B>()</PRE><DL><DD>Gets the height of the media-location text field for this <CODE>MediaPlayer</CODE>.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The height of the media location text field as an integer.</DL></DD></DL><HR><A NAME="setVolumeLevel(java.lang.String)"><!-- --></A><H3>setVolumeLevel</H3><PRE>public void <B>setVolumeLevel</B>(java.lang.String&nbsp;volumeString)</PRE><DL><DD>Sets the audio volume property for this <CODE>MediaPlayer</CODE>.   The volume can range from zero to five, where zero is silence  and five is the maximum volume.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>volumeString</CODE> - A <CODE>String</CODE> that represents the audio volume.  Possible values are "0", "1", "2", "3", "4", or "5".</DL></DD></DL><HR><A NAME="getVolumeLevel()"><!-- --></A><H3>getVolumeLevel</H3><PRE>public java.lang.String <B>getVolumeLevel</B>()</PRE><DL><DD>Gets the audio volume property for this <CODE>MediaPlayer</CODE>. The volume can range from zero to five, where zero is silence and five is the maximum volume.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A <CODE>String</CODE> that represents the audio volume.  Possible values are "0", "1", "2", "3", "4", or "5".</DL></DD></DL><HR><A NAME="isMediaLocationVisible()"><!-- --></A><H3>isMediaLocationVisible</H3><PRE>public boolean <B>isMediaLocationVisible</B>()</PRE><DL><DD>Gets the MediaLocationVisible property for this <CODE>MediaPlayer</CODE>.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE> if the media location is visible at runtime,  <CODE>false</CODE> if it is not.</DL></DD></DL><HR><A NAME="setMediaLocationVisible(boolean)"><!-- --></A><H3>setMediaLocationVisible</H3><PRE>public void <B>setMediaLocationVisible</B>(boolean&nbsp;val)</PRE><DL><DD>Sets the MediaLocationVisible property for this <CODE>MediaPlayer</CODE>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>val</CODE> - A boolean that indicates whether or not the media location is visible. Set to <CODE>true</CODE> if the media location is visible at runtime, <CODE>false</CODE> if it is not.</DL></DD></DL><HR><A NAME="isControlPanelVisible()"><!-- --></A><H3>isControlPanelVisible</H3><PRE>public boolean <B>isControlPanelVisible</B>()</PRE><DL><DD>Gets the control panel visibility property for this <CODE>MediaPlayer</CODE>. This property indicates whether or not the control panel is visible at runtime.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE> if the control panel is visible at runtime, <CODE>false</CODE> if it is not.</DL></DD></DL><HR><A NAME="setControlPanelVisible(boolean)"><!-- --></A><H3>setControlPanelVisible</H3><PRE>public void <B>setControlPanelVisible</B>(boolean&nbsp;isVisible)</PRE><DL><DD>Sets the control panel visibility property for this <CODE>MediaPlayer</CODE>. This property indicates whether or not the control panel is displayed at runtime.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>isVisible</CODE> - A boolean value that indicates whether or not the control panel  should be displayed. Set to <CODE>true</CODE> to display the control panel.</DL></DD></DL><HR><A NAME="isCachingControlVisible()"><!-- --></A><H3>isCachingControlVisible</H3><PRE>public boolean <B>isCachingControlVisible</B>()</PRE><DL><DD>Gets the caching control visibility property for this <CODE>MediaPlayer</CODE>. This property indicates whether or not the caching control is displayed at runtime. The caching control displays the download progress for media accessed over the network.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE> if the control panel is displayed at runtime, <CODE>false</CODE> if it is not.</DL></DD></DL><HR><A NAME="setCachingControlVisible(boolean)"><!-- --></A><H3>setCachingControlVisible</H3><PRE>public void <B>setCachingControlVisible</B>(boolean&nbsp;isVisible)</PRE><DL><DD>Sets the caching control visibility property for this <CODE>MediaPlayer</CODE>. This property indicates whether or not the caching control is displayed at runtime. The caching control displays the download progress for media accessed over the network.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>isVisible</CODE> - A boolean value that indicates whether or not the caching control  should be  displayed at   runtime. Set to <CODE>true</CODE> to display the control.</DL></DD></DL><HR><A NAME="isFixedAspectRatio()"><!-- --></A><H3>isFixedAspectRatio</H3><PRE>public boolean <B>isFixedAspectRatio</B>()</PRE><DL><DD>Gets the fixed aspect ratio property for this <CODE>MediaPlayer</CODE>. This  property indicates whether or not the aspect ratio of the video   is maintained when the visual component is resized.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A boolean value that indicates whether or not the aspect ratio is maintained. Returns <CODE>true</CODE> if it is, <CODE>false</CODE> if it is not.</DL></DD></DL><HR><A NAME="setFixedAspectRatio(boolean)"><!-- --></A><H3>setFixedAspectRatio</H3><PRE>public void <B>setFixedAspectRatio</B>(boolean&nbsp;isFixed)</PRE><DL><DD>Sets the fixed aspect ratio property for this <CODE>MediaPlayer</CODE>. This  property indicates whether or not the aspect ratio of the video   is maintained when the visual component is resized.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>isFixed</CODE> - A boolean value that indicates whether or not the aspect  ratio should be maintained. Set to <CODE>true</CODE> to maintain the aspect ratio.</DL></DD></DL><HR><A NAME="setPopupActive(boolean)"><!-- --></A><H3>setPopupActive</H3><PRE>public void <B>setPopupActive</B>(boolean&nbsp;isActive)</PRE><DL><DD>Specifies whether or not the Zoom Popup Menu is active. If <CODE>setPopupActive</CODE> is set to false, the popup menu won't be created.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>isActive</CODE> - A boolean value that indicates whether or not the popup menu should be created. Set to <CODE>true</CODE> to activate the popup menu.</DL></DD></DL><HR><A NAME="getVisualComponent()"><!-- --></A><H3>getVisualComponent</H3><PRE>public java.awt.Component <B>getVisualComponent</B>()</PRE><DL><DD><B>Description copied from interface: <A HREF="../../../../javax/media/Player.html">Player</A></B></DD><DD>Gets the display <code>Component</code> for this <code>Player</code>. The display <code>Component</code> is where visual media is rendered. If this <code>Player</code> has no visual component, <code>getVisualComponent</code> returns <CODE>null</CODE>. For example, <code>getVisualComponent</code> might return <CODE>null</CODE> if the <code>Player</code> only plays audio.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../javax/media/Player.html#getVisualComponent()">getVisualComponent</A> in interface <A HREF="../../../../javax/media/Player.html">Player</A></DL></DD><DD><B>Tags copied from interface: <A HREF="../../../../javax/media/Player.html">Player</A></B></DD><DD><DL><DT><B>Returns:</B><DD>The media display <code>Component</code> for this <code>Player</code>.</DL></DD></DL><HR><A NAME="getGainControl()"><!-- --></A><H3>getGainControl</H3><PRE>public <A HREF="../../../../javax/media/GainControl.html">GainControl</A> <B>getGainControl</B>()</PRE><DL><DD><B>Description copied from interface: <A HREF="../../../../javax/media/Player.html">Player</A></B></DD><DD>Gets the object for controlling this <code>Player's</code> audio gain.  If this player does not have a  <code>GainControl</code>, <code>getGainControl</code> returns <CODE>null</CODE>.   For example, <code>getGainControl</code> might return <CODE>null</CODE> if the <code>Player</code> does not play audio data.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../javax/media/Player.html#getGainControl()">getGainControl</A> in interface <A HREF="../../../../javax/media/Player.html">Player</A></DL></DD><DD><B>Tags copied from interface: <A HREF="../../../../javax/media/Player.html">Player</A></B></DD><DD><DL><DT><B>Returns:</B><DD>The <code>GainControl</code> object for this <code>Player</code>.</DL></DD></DL><HR><A NAME="getControlPanelComponent()"><!-- --></A><H3>getControlPanelComponent</H3><PRE>public java.awt.Component <B>getControlPanelComponent</B>()</PRE><DL><DD><B>Description copied from interface: <A HREF="../../../../javax/media/Player.html">Player</A></B></DD><DD>Gets the <code>Component</code> that provides the default user interface for controlling this <code>Player</code>. If this <code>Player</code> has no default control panel, <code>getControlPanelComponent</code> returns <CODE>null</CODE>.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../../javax/media/Player.html#getControlPanelComponent()">getControlPanelComponent</A> in interface <A HREF="../../../../javax/media/Player.html">Player</A></DL></DD><DD><

⌨️ 快捷键说明

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