Partager via


BufferingTime

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the amount of time to buffer.

<object BufferingTime="TimeSpan"  .../>
value = object.BufferingTime
object.BufferingTime = value

Property Value

Type: TimeSpan

The amount of time to buffer. The default value is 5 seconds (0:0:05).

This property is read/write.

Managed Equivalent

BufferingTime

Remarks

The string format for specifying a TimeSpan is [days.]hours:minutes:seconds[.fractionalSeconds]. Creating a TimeSpan in XAML is possible only through a type conversion syntax when setting a property such as BufferingTime that takes a TimeSpan as an attribute string. Creating a TimeSpan in script also uses the type conversion syntax by setting BufferingTime with a properly formatted string.

Applies To

MediaElement