AudioStreamCount Property

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.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

public int AudioStreamCount { get; }

Property Value

Type: System.Int32
The 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft