Gets or sets the index of the audio stream that plays along with the video component. The collection of audio streams is composed at run time and represents all audio streams available within the media file.
Assembly: System.Windows (in System.Windows.dll)
Dependency property identifier field: AudioStreamIndexProperty
If no audio stream index is specifically set, the value of this property is Nothing. A Nothing value means that the media file uses the default audio stream.
If you have previously set to an index value, you can set the value back to Nothing. The behavior is that the initial default audio stream value is cached, and that audio stream will resume.
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.
This property can be set in XAML in order to indicate a preference. The value becomes relevant only after the MediaOpened event has been raised.
Silverlight for Windows PhoneThis property always returns zero in Silverlight for Windows Phone.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.