public class WPFMediaElement extends WPFFrameworkElement
Modifier | Constructor and Description |
---|---|
protected |
WPFMediaElement(JtfObjectHandle handle,
Desktop desktop)
Creates a new WPFMediaElement with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canPause()
Gets a value indicating whether the media can be paused.
|
double |
getBalance()
Gets a ratio of volume across speakers.
|
double |
getLength()
Gets the natural duration of the media in seconds.
|
double |
getPosition()
Gets the current position of progress through the media's playback time in seconds.
|
double |
getSpeedRatio()
Gets the speed ratio of the media.
|
double |
getVolume()
Gets the media's volume.
|
boolean |
hasAudio()
Gets a value indicating whether the media has audio.
|
boolean |
hasVideo()
Gets a value indicating whether the media has video.
|
boolean |
isMediaLoaded()
Gets a value indicating the content is loaded.
|
boolean |
isMuted()
Gets a value indicating whether the audio is muted.
|
void |
pause()
Pauses media at the current position.
|
void |
play()
Plays media from the current position.
|
void |
setBalance(double balance)
Sets a ratio of volume across speakers.
|
void |
setIsMuted(boolean isMuted)
Sets a value indicating whether the audio is muted.
|
void |
setPosition(double position)
Sets the current position of progress through the media's playback time in seconds.
|
void |
setSpeedRatio(double speedRatio)
Sets the speed ratio of the media.
|
void |
setVolume(double volume)
Sets the media's volume.
|
void |
stop()
Stops and resets media to be played from the beginning.
|
getActualHeight, getActualWidth, getMaximumScrollPosition, getName, getScrollPosition, pointFromScreen, pointToScreen, scroll, scrollToPosition
bringIntoView, 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, typePasswordKeys
captureBitmap, 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, waitForProperty
equals, 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, toString
protected WPFMediaElement(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the WPFMediaElementdesktop
- the desktop on which this object livespublic void pause()
public void play()
public void stop()
public double getBalance()
public void setBalance(double balance)
balance
- a ratio of volume across speakerspublic boolean canPause()
public boolean hasAudio()
public boolean hasVideo()
public boolean isMediaLoaded()
public boolean isMuted()
public void setIsMuted(boolean isMuted)
isMuted
- a value indicating whether the audio is mutedpublic double getLength()
public double getPosition()
public void setPosition(double position)
position
- the current position of progress through the media's playback time in secondspublic double getSpeedRatio()
public void setSpeedRatio(double speedRatio)
speedRatio
- the speed ratio of the mediapublic double getVolume()
public void setVolume(double volume)
volume
- the media's volumeCopyright 2009-2012 Micro Focus. All Rights Reserved.