Partager via


AudioStreamCount

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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

value = object.AudioStreamCount

Property Value

Type: integer

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

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

Managed Equivalent

AudioStreamCount

Remarks

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 nonaudio stream types, but these other streams will not be part of the collection.

Applies To

MediaElement