MediaElement.AudioStreamCount Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the number of audio streams available in the current media file.
Assembly: System.Windows (in System.Windows.dll)
Property Value
Type: System.Int32The number of audio streams that exist in the source media file. The default value is 0.
Dependency property identifier field: AudioStreamCountProperty
The AudioStreamCount property value is valid only after the MediaOpened event has been raised.
AudioStreamIndex and AudioStreamCount both specifically refer to a collection of only audio streams. This collection is composed locally at run time. If you were to examine the actual media, the audio streams might be interleaved with non-audio stream types, but these other streams will not be part of the collection.