LatencyCorrectionThreshold Property
Gets or sets the latency correction threshold for live playback.
Namespace: Microsoft.Web.Media.SmoothStreaming
Assembly: Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)
Syntax
'Declaration
Public Property LatencyCorrectionThreshold As TimeSpan
'Usage
Dim instance As SmoothStreamingMediaElement
Dim value As TimeSpan
value = instance.LatencyCorrectionThreshold
instance.LatencyCorrectionThreshold = value
public TimeSpan LatencyCorrectionThreshold { get; set; }
public:
property TimeSpan LatencyCorrectionThreshold {
TimeSpan get ();
void set (TimeSpan value);
}
function get LatencyCorrectionThreshold () : TimeSpan
function set LatencyCorrectionThreshold (value : TimeSpan)
Property Value
Type: System. . :: . .TimeSpan
The latency correction threshold.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The value is smaller than the sum of the LiveBackOff value and the maximum between the BufferingTime and the LivePlaybackOffset values. |
Remarks
This property indicates the threshold at which content is deemed late and will be discarded. A default value of -1 indicates that no content is discarded. Changes that are made to this value after the SmoothStreamingSource property has been set are disregarded.
Avoid using B-frames in the encoded stream if you intend to use the LatencyCorrectionThreshold property.
Version Information
Silverlight
Supported in: 4
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
SmoothStreamingMediaElement Class