wx.media.MediaEvent

Inheritance diagram for wx.media.MediaEvent:



Description

Event wx.media.MediaCtrl uses.

Derived From

Event Handling

Event Name Description
wx.media.EVT_MEDIA_LOADED(id, func) Sent when a media has loaded enough data that it can start playing.
wx.media.EVT_MEDIA_STOP(id, func) Sent when a media has switched to the wx.media.MEDIASTATE_STOPPED state. You may be able to Veto this event to prevent it from stopping, causing it to continue playing – even if it has reached that end of the media (note that this may not have the desired effect – if you want to loop the media, for example, catch the wx.media.EVT_MEDIA_FINISHED and play there instead).
wx.media.EVT_MEDIA_FINISHED(id, func) Sent when a media has finished playing in a wx.media.MediaCtrl.
wx.media.EVT_MEDIA_STATECHANGED(id, func) Sent when a media has switched its state (from any media state).
wx.media.EVT_MEDIA_PLAY(id, func) Sent when a media has switched to the wx.media.MEDIASTATE_PLAYING state.
wx.media.EVT_MEDIA_PAUSE(id, func) Sent when a media has switched to the wx.media.MEDIASTATE_PAUSED state.

Methods Summary

Class API

Methods

__init__(commandType=wx.EVT_NULL, id=0)

Constructor.

Parameters:

  • commandType (eventtype)
  • id (int)

Returns:

wx.media.MediaEvent