MaximumLatency Property

Gets or sets the upper limit of latency correction threshold

Namespace:  Microsoft.Web.Media.SmoothStreaming
Assembly:  Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)

Syntax

'Declaration

  Public Property MaximumLatency As TimeSpan
'Usage

  Dim instance As SmoothStreamingMediaElement
Dim value As TimeSpan

value = instance.MaximumLatency

instance.MaximumLatency = value
  public TimeSpan MaximumLatency { get; set; }
  public:
property TimeSpan MaximumLatency {
    TimeSpan get ();
    void set (TimeSpan value);
}
  function get MaximumLatency () : TimeSpan
function set MaximumLatency (value : TimeSpan)

Property Value

Type: System. . :: . .TimeSpan
The maximum time interval beyond which frames are dropped and the media element surface is blank.

Exceptions

Exception Condition
InvalidOperationException

The property is set to zero or set to a value smaller than the LatencyCorrectionThreshold value.

Remarks

The value has effect only when the LatencyCorrectionThreshold property has been set. The default value of -1 indicates that there is no upper limit to the latency threshold. Changes that are made to this value after the SmoothStreamingSource property has been set are disregarded.

Version Information

Silverlight

Supported in: 4

Permissions

See Also

Reference

SmoothStreamingMediaElement Class

Microsoft.Web.Media.SmoothStreaming Namespace