Dela via


MediaSourceAudioInputNode.Duration Property

Definition

Gets the duration for the media content represented by the MediaSource associated with the node.

public:
 property TimeSpan Duration { TimeSpan get(); };
TimeSpan Duration();
public System.TimeSpan Duration { get; }
var timeSpan = mediaSourceAudioInputNode.duration;
Public ReadOnly Property Duration As TimeSpan

Property Value

A value indicating the duration for the audio input file media content.

Remarks

The Duration property represents the duration of the audio input file. The StartTime and EndTime properties can be used to set the range of the media that is used for playback, but setting these properties does not cause the value returned by Duration to change.

Applies to