#include "wx/wxPython/pyclasses.h"
#include <wx/mediactrl.h>
+#include <wx/uri.h>
%}
//----------------------------------------------------------------------
wxMEDIATIMEFORMAT_TIME=0
};
-class WXDLLIMPEXP_MEDIA wxMediaEvent : public wxNotifyEvent
+class wxMediaEvent : public wxNotifyEvent
{
public:
- wxMediaEvent(wxEventTypL, int ) { wxPyRaiseNotImplemented(); }
+ wxMediaEvent(wxEventType, int ) { wxPyRaiseNotImplemented(); }
};
class wxMediaCtrl : public wxControl
wxWindowID ,
const wxURI& ,
const wxPoint&,
- const wxSize& .
+ const wxSize& ,
long style,
const wxString& ,
const wxValidator& ,
wxWindowID ,
const wxURI& ,
const wxPoint&,
- const wxSize& .
+ const wxSize& ,
long style,
const wxString& ,
const wxValidator& ,
wxLongLong GetPosition() { return 0; }
wxLongLong GetDuration() { return 0; }
};
+
+const wxEventType wxEVT_MEDIA_FINISHED = 0;
+const wxEventType wxEVT_MEDIA_STOP = 0;
+
#endif
%}
};
-MAKE_CONST_WXSTRING(MEDIABACKEND_DIRECTSHOW);
-MAKE_CONST_WXSTRING(MEDIABACKEND_MCI );
-MAKE_CONST_WXSTRING(MEDIABACKEND_QUICKTIME );
+// MAKE_CONST_WXSTRING(MEDIABACKEND_DIRECTSHOW);
+// MAKE_CONST_WXSTRING(MEDIABACKEND_MCI );
+// MAKE_CONST_WXSTRING(MEDIABACKEND_QUICKTIME );
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
-MAKE_CONST_WXSTRING2(MediaCtrlNameStr, "mediaCtrl");
+MAKE_CONST_WXSTRING2(MediaCtrlNameStr, wxT("mediaCtrl"));
MustHaveApp(wxMediaCtrl);
%pythonAppend wxMediaCtrl() ""
- wxMediaCtrl(wxWindow* parent, wxWindowID id=-1,
+ wxMediaCtrl(wxWindow* parent,
+ wxWindowID id=-1,
const wxString& fileName = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
%extend {
%name(MediaCtrlFromURI)
- wxMediaCtrl(wxWindow* parent, wxWindowID id=-1,
+ wxMediaCtrl(wxWindow* parent,
+ wxWindowID id=-1,
const wxString& location=wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
pos, size, style, szBackend, validator, name);
}
- bool CreateFromURI(wxWindow* parent, wxWindowID id=-1,
+ bool CreateFromURI(wxWindow* parent,
+ wxWindowID id=-1,
const wxString& location=wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
}
- bool Create(wxWindow* parent, wxWindowID id=-1,
+ bool Create(wxWindow* parent,
+ wxWindowID id=-1,
const wxString& fileName = wxPyEmptyString,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
double GetPlaybackRate();
bool SetPlaybackRate(double dRate);
- bool SetPosition(wxLongLong where);
- wxLongLong GetPosition();
- wxLongLong GetDuration();
+ %name(SetMediaPosition) bool SetPosition(wxLongLong where);
+ %name(GetMediaPosition) wxLongLong GetPosition();
+ %name(GetMediaDuration) wxLongLong GetDuration();
};