Editare

Partajați prin


MediaElement.Clock Property

Definition

Gets or sets the clock associated with the MediaTimeline that controls media playback.

public:
 property System::Windows::Media::MediaClock ^ Clock { System::Windows::Media::MediaClock ^ get(); void set(System::Windows::Media::MediaClock ^ value); };
public System.Windows.Media.MediaClock Clock { get; set; }
member this.Clock : System.Windows.Media.MediaClock with get, set
Public Property Clock As MediaClock

Property Value

A clock associated with the MediaTimeline that controls media playback. The default value is null.

Remarks

Setting this property puts the media element into a mode in which it utilizes the timing engine. Any media that was previously playing is stopped and the uniform resource identifier (URI) associated with the new clock is opened.

Applies to