Export (0) Print
Expand All
Expand Minimize

LivePlaybackOffset Property

Gets or sets how far back from the live position, excluding LiveBackOff, to start playback when joining a live presentation.  Increasing this value allows the pre-roll buffer to fill faster than real time and creates a buffer against network jitter, but increases the end-to-end latency of the presentation. The default value is 7 seconds. Changes that are made to this value after the SmoothStreamingSource property has been set are disregarded.

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

public TimeSpan LivePlaybackOffset { get; set; }

Property Value

Type: System..::..TimeSpan
The duration away from the live position, excluding LiveBackOff, to start playback when joining a live presentation.

The following diagram shows the stages of buffering and offsets.

Smooth Streaming Offsets

The BufferingTime property specifies the duration of media content that will be downloaded before the SmoothStreamingMediaElement object begins to display any content. The LivePlaybackOffset property specifies the duration of media content backed off from the value of the LiveBackOff property (that is, the current live represented by the P:Microsoft.Web.Media.SmoothStreaming.SmoothStreamingMediaElement.LiveBackOff property) where downloading and playback begins. Setting the LivePlaybackOffset property enables faster startup through build-up of a portion or all of startup buffer specified by BufferingTime as fast as bandwidth will support. It creates a buffer against network jitter but increases the end-to-end latency.

As a result, the end-to-end latency on the client side (that is, how close playback is to live content that is available on the server) is at least the LiveBackOff value plus the larger of BufferingTime or LivePlaybackOffset value away from the live stream.

Silverlight

Supported in: 4

Show:
© 2014 Microsoft