MediaStreamDescription Constructor
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the MediaStreamDescription class with the specified values.
Assembly: System.Windows (in System.Windows.dll)
public MediaStreamDescription( MediaStreamType type, IDictionary<MediaStreamAttributeKeys, string> mediaStreamAttributes )
Parameters
- type
- Type: System.Windows.Media.MediaStreamType
A value from the enumeration, which is either audio or video.
- mediaStreamAttributes
- Type: System.Collections.Generic.IDictionary<MediaStreamAttributeKeys, String>
A collection of pairs describing other attributes of the overall Media Stream.
| Exception | Condition |
|---|---|
| InvalidOperationException | The specified type is not audio or video. |
Show: