MediaSourceAudioInputNode.Duration Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.