Share via


MediaSourceAudioInputNode.EndTime Property

Definition

Gets or sets the end time for the MediaSource input node, which determines when playback of the media content ends.

public:
 property IReference<TimeSpan> ^ EndTime { IReference<TimeSpan> ^ get(); void set(IReference<TimeSpan> ^ value); };
IReference<TimeSpan> EndTime();

void EndTime(IReference<TimeSpan> value);
public System.Nullable<System.TimeSpan> EndTime { get; set; }
var iReference = mediaSourceAudioInputNode.endTime;
mediaSourceAudioInputNode.endTime = iReference;
Public Property EndTime As Nullable(Of TimeSpan)

Property Value

A value indicating the end time.

Remarks

EndTime defines the point within the media content represented by the MediaSource ends. If EndTime is null, playback will stop when the end of the media content is reached. EndTime can't be set to a time greater than the duration of the media content. Attempting to do so will result in an invalid argument error.

Set the point within the media content at which playback starts with the StartTime property.

Applies to