Export (0) Print
Expand All

AudioStreamCount Property

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

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

Property Value

integer

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

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

Remarks

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

MediaElement

See Also

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

Community Additions

Show:
© 2014 Microsoft