Package com.hp.lft.sdk.web
Interface MediaControl
- All Known Subinterfaces:
- AudioControl,- VideoControl
public interface MediaControl
Web methods for playing media (audio/video) files embedded in the HTML page.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the URL of the media file currently selected in the browser window.intReturns the length of the currently selected media file (in milliseconds).doubleReturns the speed of the media playback.intReturns the current playback position in the media file (in milliseconds).String[]Returns a collection of all media file source URLs.doubleReturns the volume used when playing this media file.booleanIndicates whether this media file starts playing as soon as it loads.booleanIndicates whether this media player should display playback controls.booleanisMuted()Indicates whether the media volume is muted.booleanReturns whether this media is currently playing.booleanIndicates whether this media file should start playing again from the beginning as soon as it finishes playing.voidpause()Pauses the media playback.voidplay()Plays the media file.voidreload()Reloads the media file.
- 
Method Details- 
hasAutoPlayIndicates whether this media file starts playing as soon as it loads.- Returns:
- true, if the media file starts playing as soon as it loads.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
hasPlaybackControlsIndicates whether this media player should display playback controls.- Returns:
- true, if the media player should display playback controls.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
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.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isPlayInLoopIndicates whether this 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.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isMutedIndicates whether the media volume is muted.- Returns:
- true, if the media volume is muted.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
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.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
isPlayingReturns whether this media is currently playing.- Returns:
- true, if the media is currently playing.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getVolumeReturns the volume used when playing this 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.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getPlaybackTimeReturns the current playback position in the media file (in milliseconds).- Returns:
- the current playback position in the media file (in milliseconds).
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getDurationReturns the length of the currently selected media file (in milliseconds).- Returns:
- the length of the currently selected media file (in milliseconds).
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
getSourcesReturns a collection of all media file source URLs. A media file may have multiple URL addresses for use in different browser types. If the src attribute was set, but no sources were defined in the HTML, the Sources property will return a collection containing a single item with the "src" value.- Returns:
- a collection of all media file source URLs.
- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
reloadReloads the media file.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
playPlays the media file.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
- 
pausePauses the media playback.- Throws:
- GeneralLeanFtException- if error occurs during execution
 
 
-