OpenMediaAsync Method

MediaStreamSource.OpenMediaAsync Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The MediaElement calls this method to ask the MediaStreamSource to open the media.

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

Protected MustOverride Sub OpenMediaAsync

After the collection of MediaStreamDescription objects is instantiated, a developer should call ReportMediaCompleted with the collection of MediaStreamDescription objects. If the media cannot be opened, the ErrorOccurred method should be called instead.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft