wxMEDIASTATE_PLAYING=0
};
+enum wxMediaCtrlPlayerControls
+{
+ wxMEDIACTRLPLAYERCONTROLS_NONE,
+ wxMEDIACTRLPLAYERCONTROLS_STEP,
+ wxMEDIACTRLPLAYERCONTROLS_VOLUME,
+ wxMEDIACTRLPLAYERCONTROLS_DEFAULT
+};
+
class wxMediaEvent : public wxNotifyEvent
{
public:
bool Pause() { return false; }
bool Stop() { return false; }
- bool Load(const wxString& fileName) { return false; }
- bool Load(const wxURI& location) { return false; }
-
wxMediaState GetState() { return wxMEDIASTATE_STOPPED; }
double GetPlaybackRate() { return 0.0; }
double GetVolume() { return 0.0; }
bool SetVolume(double dVolume) { return false; }
+
+ bool ShowPlayerControls(
+ wxMediaCtrlPlayerControls flags = wxMEDIACTRLPLAYERCONTROLS_DEFAULT)
+ { return false; }
+
+ bool Load(const wxString& fileName) { return false; }
+ bool LoadURI(const wxString& fileName) { return false; }
+ bool LoadURIWithProxy(const wxString& fileName, const wxString& proxy) { return false; }
};
const wxEventType wxEVT_MEDIA_FINISHED = 0;
const wxEventType wxEVT_MEDIA_STOP = 0;
+const wxEventType wxEVT_MEDIA_LOADED = 0;
#endif
%}
bool Pause();
bool Stop();
- double GetVolume(); //DirectShow only
- bool SetVolume(double dVolume); //DirectShow only
-
- bool Load(const wxString& fileName);
- %extend {
- bool LoadFromURI(const wxString& location) {
- return self->Load(wxURI(location));
- }
- }
-
wxMediaState GetState();
double GetPlaybackRate();
wxFileOffset Seek(wxFileOffset where, wxSeekMode mode = wxFromStart);
wxFileOffset Tell();
wxFileOffset Length();
+
+ double GetVolume();
+ bool SetVolume(double dVolume);
+
+ bool ShowPlayerControls(
+ wxMediaCtrlPlayerControls flags = wxMEDIACTRLPLAYERCONTROLS_DEFAULT);
+
+ bool Load(const wxString& fileName);
+ bool LoadURI(const wxString& fileName);
+ bool LoadURIWithProxy(const wxString& fileName, const wxString& proxy);
+ %pythoncode { LoadFromURI = LoadURI }
};
%constant wxEventType wxEVT_MEDIA_FINISHED;
%constant wxEventType wxEVT_MEDIA_STOP;
+%constant wxEventType wxEVT_MEDIA_LOADED;
%pythoncode {
EVT_MEDIA_FINISHED = wx.PyEventBinder( wxEVT_MEDIA_FINISHED, 1)
EVT_MEDIA_STOP = wx.PyEventBinder( wxEVT_MEDIA_STOP, 1)
+EVT_MEDIA_LOADED = wx.PyEventBinder( wxEVT_MEDIA_LOADED, 1)
}
//---------------------------------------------------------------------------