Package com.hp.lft.sdk.web
Class MediaControlDescription.Init<T extends MediaControlDescription.Init<T>>
java.lang.Object
com.hp.lft.sdk.DescriptionBase.Init<T>
com.hp.lft.sdk.web.WebBaseDescription.Init<T>
com.hp.lft.sdk.web.WebElementDescription.Init<T>
com.hp.lft.sdk.web.MediaControlDescription.Init<T>
- Direct Known Subclasses:
- AudioControlDescription.Init,- VideoControlDescription.Init
- Enclosing class:
- MediaControlDescription
protected abstract static class MediaControlDescription.Init<T extends MediaControlDescription.Init<T>>
extends WebElementDescription.Init<T>
Helper class for derived Builder classes.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionInitializes whether the media file starts playing as soon as it loads.currentSource(StringProperty currentSource) Initializes the URL of the media file currently selected in the browser window.currentSource(String currentSource) Initializes the URL of the media file currently selected in the browser window.Initializes the length of the currently selected media file (in milliseconds).Initializes whether the media volume is muted.playbackControls(Boolean hasPlaybackControls) Initializes whether the media player should display playback controls.playbackRate(Double playbackRate) Initializes the speed of the media playback.playbackTime(Integer playbackTime) Initializes the current playback position in the media file (in milliseconds).Initializes whether the media is currently playing.playInLoop(Boolean isPlayInLoop) Initializes whether the media file should start playing again from the beginning as soon as it finishes playing.Initializes the list of all media file source URLs.Initializes the volume used when playing the media file.Methods inherited from class com.hp.lft.sdk.web.WebElementDescription.InitaccessibilityName, accessibilityName, build, cssSelector, cssSelector, role, role, xpath, xpathMethods inherited from class com.hp.lft.sdk.web.WebBaseDescription.InitabsoluteLocation, absoluteLocation, absoluteLocation, attribute, attribute, attributes, className, className, id, id, innerHTML, innerHTML, innerText, innerText, location, location, location, name, name, outerHTML, outerHTML, outerText, outerText, size, size, size, style, style, styles, tagName, tagName, title, title, visibleMethods inherited from class com.hp.lft.sdk.DescriptionBase.Initindex, objectProperties, self, vri, vri
- 
Constructor Details- 
Initprotected Init()
 
- 
- 
Method Details- 
autoPlayInitializes 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.
- Returns:
- the description instance with the update state (builder pattern).
 
- 
playbackControlsInitializes whether the media player should display playback controls.- Parameters:
- hasPlaybackControls- true, if the media player should display playback controls.
- Returns:
- the description instance with the update state (builder pattern).
 
- 
currentSourceInitializes 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.
- Returns:
- the description instance with the update state (builder pattern).
 
- 
currentSourceInitializes 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.
- Returns:
- the description instance with the update state (builder pattern).
 
- 
playInLoopInitializes 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.
- Returns:
- the description instance with the update state (builder pattern).
 
- 
mutedInitializes whether the media volume is muted.- Parameters:
- isMuted- true, if the media volume is muted.
- Returns:
- the description instance with the update state (builder pattern).
 
- 
playbackRateInitializes the speed of the media playback. Valid values are numbers with up to two decimal places. For example, 0.51 or 1.00.- Parameters:
- playbackRate- the speed of the media playback. Valid values are numbers with up to two decimal places. For example, 0.51 or 1.00.
- Returns:
- the description instance with the update state (builder pattern).
 
- 
playingInitializes whether the media is currently playing.- Parameters:
- isPlaying- true, if the media is currently playing.
- Returns:
- the description instance with the update state (builder pattern).
 
- 
volumeInitializes the volume used when playing the media file. Valid values are numbers with up to two decimal places. For example, 0.51 or 1.00.- Parameters:
- volume- the volume used when playing the media file. Valid values are numbers with up to two decimal places. For example, 0.51 or 1.00.
- Returns:
- the description instance with the update state (builder pattern).
 
- 
durationInitializes the length of the currently selected media file (in milliseconds).- Parameters:
- duration- the length of the currently selected media file (in milliseconds).
- Returns:
- the description instance with the update state (builder pattern).
 
- 
playbackTimeInitializes the current playback position in the media file (in milliseconds).- Parameters:
- playbackTime- the current playback position in the media file (in milliseconds).
- Returns:
- the description instance with the update state (builder pattern).
 
- 
sourcesInitializes the list of all media file source URLs.- Parameters:
- sources- the list of all media file source URLs.
- Returns:
- the description instance with the update state (builder pattern).
 
 
-