Class MediaControlDescription
The description of a Web MediaControl (audio control or video control) test object.
Inheritance
Inherited Members
Namespace: HP.LFT.SDK.Web
Assembly: HP.LFT.SDK.dll
Syntax
public abstract class MediaControlDescription : WebElementDescription, ICloneable, IDescription
Constructors
MediaControlDescription()
Declaration
protected MediaControlDescription()
Properties
CurrentSource
The URL of the media file currently selected in the browser window.
Declaration
public StringProperty CurrentSource { get; set; }
Property Value
| Type | Description |
|---|---|
| StringProperty |
Duration
The length of the currently selected media file (in milliseconds).
Declaration
public uint? Duration { get; set; }
Property Value
| Type | Description |
|---|---|
| uint? |
HasAutoPlay
Indicates whether the media file should start playing as soon as it loads.
Declaration
public bool? HasAutoPlay { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
HasPlaybackControls
Indicates whether the media player should display playback controls.
Declaration
public bool? HasPlaybackControls { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
IsMuted
Indicates whether the media volume is muted.
Declaration
public bool? IsMuted { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
IsPlayInLoop
Indicates whether the media file should start playing again from the beginning as soon as it finishes playing.
Declaration
public bool? IsPlayInLoop { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
IsPlaying
Indicates whether the media file is currently playing.
Declaration
public bool? IsPlaying { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
PlaybackRate
Indicates the speed of the media playback.
Declaration
public double? PlaybackRate { get; set; }
Property Value
| Type | Description |
|---|---|
| double? |
Remarks
Possible values: Numbers with up to two decimal places. For example, 0.51 or 1.00.
PlaybackTime
The current playback position in this media file (in milliseconds).
Declaration
public uint? PlaybackTime { get; set; }
Property Value
| Type | Description |
|---|---|
| uint? |
Sources
The list of all media file source URLs (separated by ;).
Declaration
public string[] Sources { get; set; }
Property Value
| Type | Description |
|---|---|
| string[] |
Remarks
A media file may have multiple URL addresses for use in different browser types.
Volume
Indicates the volume used when playing the media file.
Declaration
public double? Volume { get; set; }
Property Value
| Type | Description |
|---|---|
| double? |
Remarks
Possible values: Numbers with up to two decimal places. For example, 0.51 or 1.00.