MediaPlayer.MediaOpened | mediaopened event

Applies to Windows Phone only

Occurs when the media is opened.

Syntax


function onMediaOpened(eventArgs) { /* Your code */ }
 
// addEventListener syntax
mediaPlayer.addEventListener("mediaopened", onMediaOpened);
mediaPlayer.removeEventListener("mediaopened", onMediaOpened);
 
- or -

mediaPlayer.onmediaopened = onMediaOpened;


Event information

Delegate TypedEventHandler<MediaPlayer, Object>

Requirements

Minimum supported client

None supported

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Media.Playback
Windows::Media::Playback [C++]

Metadata

Windows.winmd

See also

MediaPlayer

 

 

Community Additions

ADD
Show:
© 2014 Microsoft