Share via


Windows Media Player 11 SDK AxWindowsMediaPlayer.MediaError Event (VB and C#) 

Windows Media Player SDK banner art

Previous Next

AxWindowsMediaPlayer.MediaError Event (VB and C#)

The MediaError event occurs when a media object has an error condition.

[Visual Basic]
Private Sub player_MediaError(
  sender As Object,
  e As _WMPOCXEvents_MediaErrorEvent
) Handles player.MediaError

[C#]
private void player_MediaError(
  object sender,
  _WMPOCXEvents_MediaErrorEvent e
)

Event Data

The handler associated with this event is of type AxWMPLib._WMPOCXEvents_MediaErrorEventHandler. This handler receives an argument of type AxWMPLib._WMPOCXEvents_MediaErrorEvent, which contains the following property related to this event.

Property Description
pMediaObject System.Object

Object that has an error condition. You can cast this to an IWMPMedia interface to access it.

Requirements

Version: Windows Media Player 9 Series or later

Namespace: AxWMPLib

Assembly: AxInterop.WMPLib.dll (automatically generated by Visual Studio)

See Also

Previous Next