AudioStreamCount Property

Gets the number of audio streams available in the current media file.

XAML You cannot set this property in XAML.
value = object.AudioStreamCount

Property Value


The number of audio streams that exist in the source media file.

This property is read-only. The default value is 0.


The AudioStreamCount property value is only valid 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 runtime. If you were to examine the actual media, the audio streams might be interleaved with nonaudio stream types, but these other streams will not be part of the collection.

Applies To


See Also

MediaOpened, Source (MediaElement), AudioStreamIndex Media Overview, Supported Media Formats and Protocols

Community Additions