Package com.hp.lft.sdk.web
Class MediaControlDescription
java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
com.hp.lft.sdk.PropertiesDescription
com.hp.lft.sdk.DescriptionBase
com.hp.lft.sdk.web.WebBaseDescription
com.hp.lft.sdk.web.WebElementDescription
com.hp.lft.sdk.web.MediaControlDescription
- All Implemented Interfaces:
- CloneableObject,- Description,- com.hp.lft.sdk.internal.DescriptionWithVri,- Cloneable
- Direct Known Subclasses:
- AudioControlDescription,- VideoControlDescription
The description of a Web MediaControl (audio control or video control) test object.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classHelper class for derived Builder classes.Nested classes/interfaces inherited from class com.hp.lft.sdk.web.WebElementDescriptionWebElementDescription.Builder
- 
Field SummaryFields inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBaseproperties
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedInitializes a new instance of the MediaControlDescription class.protectedInitializes a new instance of the MediaControlDescription class using the Builder pattern.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the URL of the media file currently selected in the browser window.Returns the length of the currently selected media file (in milliseconds).Returns the speed of the media playback.Returns the current playback position in the media file (in milliseconds).String[]Returns the list of all media file source URLs.Returns the volume used when playing the media file.Indicates whether the media file starts playing as soon as it loads.Indicates whether the media player should display playback controls.isMuted()Indicates whether the media volume is muted.Indicates whether the media is currently playing.Indicates whether the media file should start playing again from the beginning as soon as it finishes playing.voidsetAutoPlay(Boolean hasAutoPlay) Sets whether the media file starts playing as soon as it loads.voidsetCurrentSource(StringProperty currentSource) Sets the URL of the media file currently selected in the browser window.voidsetCurrentSource(String currentSource) Sets the URL of the media file currently selected in the browser window.voidsetDuration(Integer duration) Sets the length of the currently selected media file (in milliseconds).voidSets whether the media volume is muted.voidsetPlaybackControls(Boolean hasPlaybackControls) Sets whether the media player should display playback controls.voidsetPlaybackRate(Double playbackRate) Sets the speed of the media playback.voidsetPlaybackTime(Integer playbackTime) Sets the current playback position in the media file (in milliseconds).voidsetPlaying(Boolean isPlaying) Sets whether the media is currently playing.voidsetPlayInLoop(Boolean isPlayInLoop) Sets whether the media file should start playing again from the beginning as soon as it finishes playing.voidsetSources(String[] sources) Sets the list of all media file source URLs.voidSets the volume used when playing the media file.Methods inherited from class com.hp.lft.sdk.web.WebElementDescriptiongetAccessibilityName, getCSSSelector, getRole, getXPath, setAccessibilityName, setAccessibilityName, setCSSSelector, setCSSSelector, setRole, setRole, setXPath, setXPathMethods inherited from class com.hp.lft.sdk.web.WebBaseDescriptioncloneTo, getAbsoluteLocation, getAttributes, getClassName, getId, getInnerHTML, getInnerText, getLocation, getName, getOuterHTML, getOuterText, getSize, getStyles, getTagName, getTitle, isVisible, setAbsoluteLocation, setAbsoluteLocation, setAbsoluteLocation, setAttributes, setClassName, setClassName, setId, setId, setInnerHTML, setInnerHTML, setInnerText, setInnerText, setLocation, setLocation, setLocation, setName, setName, setOuterHTML, setOuterHTML, setOuterText, setOuterText, setSize, setSize, setSize, setStyles, setTagName, setTagName, setTitle, setTitle, setVisibleMethods inherited from class com.hp.lft.sdk.DescriptionBasegetIndex, getIndexType, getObjectProperties, getVRI, setIndex, setIndexType, setObjectProperties, setVRI, setVRIMethods inherited from class com.hp.lft.sdk.PropertiesDescriptioncloneMethods inherited from class com.hp.lft.sdk.internal.PropertiesDescriptionBasegetValueAs, getValueAsStringProperty, insertValueMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hp.lft.sdk.CloneableObjectclone
- 
Constructor Details- 
MediaControlDescriptionInitializes a new instance of the MediaControlDescription class using the Builder pattern.- Parameters:
- init- the Builder pattern.
 
- 
MediaControlDescriptionprotected MediaControlDescription()Initializes a new instance of the MediaControlDescription class.
 
- 
- 
Method Details- 
setAutoPlaySets whether the media file starts playing as soon as it loads.- Parameters:
- hasAutoPlay- true if the media file starts playing as soon as it loads.
 
- 
hasAutoPlayIndicates whether the media file starts playing as soon as it loads.- Returns:
- true, if the media file starts playing as soon as it loads.
 
- 
setPlaybackControlsSets whether the media player should display playback controls.- Parameters:
- hasPlaybackControls- true, if the media player should display playback controls.
 
- 
hasPlaybackControlsIndicates whether the media player should display playback controls.- Returns:
- true, if the media player should display playback controls.
 
- 
setCurrentSourceSets the URL of the media file currently selected in the browser window.- Parameters:
- currentSource- a StringProperty(or RegExpProperty) representing the URL of the media file currently selected in the browser window.
 
- 
setCurrentSourceSets the URL of the media file currently selected in the browser window.- Parameters:
- currentSource- the URL of the media file currently selected in the browser window.
 
- 
getCurrentSourceReturns the URL of the media file currently selected in the browser window.- Returns:
- the URL of the media file currently selected in the browser window.
 
- 
setPlayInLoopSets whether the media file should start playing again from the beginning as soon as it finishes playing.- Parameters:
- isPlayInLoop- true, if the media file should start playing again from the beginning as soon as it finishes playing.
 
- 
isPlayInLoopIndicates whether the media file should start playing again from the beginning as soon as it finishes playing.- Returns:
- true, if the media file should start playing again from the beginning as soon as it finishes playing.
 
- 
setMutedSets whether the media volume is muted.- Parameters:
- isMuted- true, if the media volume is muted.
 
- 
isMutedIndicates whether the media volume is muted.- Returns:
- true, if the media volume is muted.
 
- 
setPlaybackRateSets the speed of the media playback. Possible values: Numbers with up to two decimal places. For example, 0.51 or 1.00.- Parameters:
- playbackRate- the speed of the media playback. Possible values: Numbers with up to two decimal places. For example, 0.51 or 1.00.
 
- 
getPlaybackRateReturns the speed of the media playback. Possible values: Numbers with up to two decimal places. For example, 0.51 or 1.00.- Returns:
- the speed of the media playback. Possible values: Numbers with up to two decimal places. For example, 0.51 or 1.00.
 
- 
setPlayingSets whether the media is currently playing.- Parameters:
- isPlaying- true, if the media is currently playing.
 
- 
isPlayingIndicates whether the media is currently playing.- Returns:
- true, if the media is currently playing.
 
- 
setVolumeSets the volume used when playing the media file. Possible values: Numbers with up to two decimal places. For example, 0.51 or 1.00.- Parameters:
- volume- the volume used when playing the media file. Possible values: Numbers with up to two decimal places. For example, 0.51 or 1.00.
 
- 
getVolumeReturns the volume used when playing the media file. Possible values: Numbers with up to two decimal places. For example, 0.51 or 1.00.- Returns:
- the volume used when playing the media file. Possible values: Numbers with up to two decimal places. For example, 0.51 or 1.00.
 
- 
setDurationSets the length of the currently selected media file (in milliseconds).- Parameters:
- duration- the length of the currently selected media file (in milliseconds).
 
- 
getDurationReturns the length of the currently selected media file (in milliseconds).- Returns:
- the length of the currently selected media file (in milliseconds).
 
- 
setPlaybackTimeSets the current playback position in the media file (in milliseconds).- Parameters:
- playbackTime- the current playback position in the media file (in milliseconds).
 
- 
getPlaybackTimeReturns the current playback position in the media file (in milliseconds).- Returns:
- the current playback position in the media file (in milliseconds).
 
- 
setSourcesSets the list of all media file source URLs.- Parameters:
- sources- the list of all media file source URLs.
 
- 
getSourcesReturns the list of all media file source URLs.- Returns:
- the list of all media file source URLs.
 
 
-