Windows Dev Center

MediaStreamSource.OpenMediaAsync Method

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

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

'Declaration
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

Show:
© 2015 Microsoft