******************* wx.media.MediaEvent ******************* Inheritance diagram for `wx.media.MediaEvent`: | .. inheritance-diagram:: wx.media.MediaEvent | Description =========== Event `wx.media.MediaCtrl <../media/wx.media.MediaCtrl.html>`_ uses. Derived From ^^^^^^^^^^^^^ * `wx.NotifyEvent `_ 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 ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__(commandType=wx.EVT_NULL, id=0) Constructor. **Parameters:** * `commandType` (eventtype) * `id` (int) | **Returns:** `wx.media.MediaEvent `_