public class WPFMediaElement extends WPFFrameworkElement
| Modifier | Constructor and Description |
|---|---|
protected |
WPFMediaElement(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 WPFMediaElement。
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPause()
获取 表示媒体是否可以暂停的值。
|
double |
getBalance()
获取 各扬声器的音量比率。
|
double |
getLength()
获取 媒体的自然持续时间(秒)。
|
double |
getPosition()
获取 媒体回放时间(秒)内进度的当前位置。
|
double |
getSpeedRatio()
获取 媒体的速比。
|
double |
getVolume()
获取 媒体的音量。
|
boolean |
hasAudio()
获取 表示媒体是否具有音频的值。
|
boolean |
hasVideo()
获取 表示媒体是否具有视频的值。
|
boolean |
isMediaLoaded()
获取 表示内容已加载的值。
|
boolean |
isMuted()
获取 表示音频是否静音的值。
|
void |
pause()
在当前位置暂停媒体。
|
void |
play()
从当前位置播放媒体。
|
void |
setBalance(double balance)
设置 各扬声器的音量比率。
|
void |
setIsMuted(boolean isMuted)
设置 表示音频是否静音的值。
|
void |
setPosition(double position)
设置 媒体回放时间(秒)内进度的当前位置。
|
void |
setSpeedRatio(double speedRatio)
设置 媒体的速比。
|
void |
setVolume(double volume)
设置 媒体的音量。
|
void |
stop()
停止并重置媒体以将其从头播放。
|
getActualHeight, getActualWidth, getMaximumScrollPosition, getName, getScrollPosition, pointFromScreen, pointToScreen, scroll, scrollToPositionbringIntoView, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getToolTip, isEnabled, isFocused, mouseMove, mouseMove, openContextMenu, openContextMenu, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setFocus, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeyscaptureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getText, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForPropertyequals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toStringprotected WPFMediaElement(JtfObjectHandle handle, Desktop desktop)
handle - 可确定 WPFMediaElement 的句柄desktop - 此对象所在的桌面public void pause()
public void play()
public void stop()
public double getBalance()
public void setBalance(double balance)
balance - 各扬声器的音量比率public boolean canPause()
public boolean hasAudio()
public boolean hasVideo()
public boolean isMediaLoaded()
public boolean isMuted()
public void setIsMuted(boolean isMuted)
isMuted - 表示音频是否静音的值public double getLength()
public double getPosition()
public void setPosition(double position)
position - 媒体回放时间(秒)内进度的当前位置public double getSpeedRatio()
public void setSpeedRatio(double speedRatio)
speedRatio - 媒体的速比public double getVolume()
public void setVolume(double volume)
volume - 媒体的音量Copyright 2009-2012 Micro Focus. All Rights Reserved.