Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 997 Bytes

mediaelement_mediaopened.md

File metadata and controls

34 lines (21 loc) · 997 Bytes
-api-id -api-type
E:Windows.UI.Xaml.Controls.MediaElement.MediaOpened
winrt event

Windows.UI.Xaml.Controls.MediaElement.MediaOpened

-description

Occurs when the media stream has been validated and opened, and the file headers have been read.

-xaml-syntax

<MediaElement MediaOpened="eventhandler" .../>

-remarks

Live media streams report a NaturalDuration of Int64.MaxValue.

Any calls to Play, Pause, and Stop methods that occur before the MediaOpened event is raised are ignored.

-examples

The following code shows how to determine if a media stream is a live stream.

[!code-csharpMediaOpenedLiveStream]

-see-also