1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
5 Classes for a media player control
10 new_instancemethod
= new
.instancemethod
11 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
12 if (name
== "thisown"): return self
.this
.own(value
)
14 if type(value
).__name
__ == 'PySwigObject':
15 self
.__dict
__[name
] = value
17 method
= class_type
.__swig
_setmethods
__.get(name
,None)
18 if method
: return method(self
,value
)
19 if (not static
) or hasattr(self
,name
):
20 self
.__dict
__[name
] = value
22 raise AttributeError("You cannot add attributes to %s" % self
)
24 def _swig_setattr(self
,class_type
,name
,value
):
25 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
27 def _swig_getattr(self
,class_type
,name
):
28 if (name
== "thisown"): return self
.this
.own()
29 method
= class_type
.__swig
_getmethods
__.get(name
,None)
30 if method
: return method(self
)
31 raise AttributeError,name
34 try: strthis
= "proxy of " + self
.this
.__repr
__()
36 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
40 _object
= types
.ObjectType
42 except AttributeError:
48 def _swig_setattr_nondynamic_method(set):
49 def set_attr(self
,name
,value
):
50 if (name
== "thisown"): return self
.this
.own(value
)
51 if hasattr(self
,name
) or (name
== "this"):
54 raise AttributeError("You cannot add attributes to %s" % self
)
60 __docfilter__
= wx
.__DocFilter
(globals())
61 MEDIASTATE_STOPPED
= _media
.MEDIASTATE_STOPPED
62 MEDIASTATE_PAUSED
= _media
.MEDIASTATE_PAUSED
63 MEDIASTATE_PLAYING
= _media
.MEDIASTATE_PLAYING
64 MEDIACTRLPLAYERCONTROLS_NONE
= _media
.MEDIACTRLPLAYERCONTROLS_NONE
65 MEDIACTRLPLAYERCONTROLS_STEP
= _media
.MEDIACTRLPLAYERCONTROLS_STEP
66 MEDIACTRLPLAYERCONTROLS_VOLUME
= _media
.MEDIACTRLPLAYERCONTROLS_VOLUME
67 MEDIACTRLPLAYERCONTROLS_DEFAULT
= _media
.MEDIACTRLPLAYERCONTROLS_DEFAULT
68 class MediaEvent(_core
.NotifyEvent
):
69 """Proxy of C++ MediaEvent class"""
70 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
72 def __init__(self
, *args
, **kwargs
):
73 """__init__(self, EventType commandType=wxEVT_NULL, int id=0) -> MediaEvent"""
74 _media
.MediaEvent_swiginit(self
,_media
.new_MediaEvent(*args
, **kwargs
))
75 _media
.MediaEvent_swigregister(MediaEvent
)
77 MEDIABACKEND_DIRECTSHOW
= cvar
.MEDIABACKEND_DIRECTSHOW
78 MEDIABACKEND_MCI
= cvar
.MEDIABACKEND_MCI
79 MEDIABACKEND_QUICKTIME
= cvar
.MEDIABACKEND_QUICKTIME
80 MEDIABACKEND_GSTREAMER
= cvar
.MEDIABACKEND_GSTREAMER
81 MEDIABACKEND_REALPLAYER
= cvar
.MEDIABACKEND_REALPLAYER
82 MEDIABACKEND_WMP10
= cvar
.MEDIABACKEND_WMP10
84 class MediaCtrl(_core
.Control
):
85 """Proxy of C++ MediaCtrl class"""
86 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
88 def __init__(self
, *args
, **kwargs
):
90 __init__(self, Window parent, int id=-1, String fileName=EmptyString,
91 Point pos=DefaultPosition, Size size=DefaultSize,
92 long style=0, String szBackend=EmptyString,
93 Validator validator=DefaultValidator,
94 String name=MediaCtrlNameStr) -> MediaCtrl
96 _media
.MediaCtrl_swiginit(self
,_media
.new_MediaCtrl(*args
, **kwargs
))
97 self
._setOORInfo
(self
)
99 def Create(*args
, **kwargs
):
101 Create(self, Window parent, int id=-1, String fileName=EmptyString,
102 Point pos=DefaultPosition, Size size=DefaultSize,
103 long style=0, String szBackend=EmptyString,
104 Validator validator=DefaultValidator,
105 String name=MediaCtrlNameStr) -> bool
107 return _media
.MediaCtrl_Create(*args
, **kwargs
)
109 def Play(*args
, **kwargs
):
110 """Play(self) -> bool"""
111 return _media
.MediaCtrl_Play(*args
, **kwargs
)
113 def Pause(*args
, **kwargs
):
114 """Pause(self) -> bool"""
115 return _media
.MediaCtrl_Pause(*args
, **kwargs
)
117 def Stop(*args
, **kwargs
):
118 """Stop(self) -> bool"""
119 return _media
.MediaCtrl_Stop(*args
, **kwargs
)
121 def GetState(*args
, **kwargs
):
122 """GetState(self) -> int"""
123 return _media
.MediaCtrl_GetState(*args
, **kwargs
)
125 def GetPlaybackRate(*args
, **kwargs
):
126 """GetPlaybackRate(self) -> double"""
127 return _media
.MediaCtrl_GetPlaybackRate(*args
, **kwargs
)
129 def SetPlaybackRate(*args
, **kwargs
):
130 """SetPlaybackRate(self, double dRate) -> bool"""
131 return _media
.MediaCtrl_SetPlaybackRate(*args
, **kwargs
)
133 def Seek(*args
, **kwargs
):
134 """Seek(self, wxFileOffset where, int mode=FromStart) -> wxFileOffset"""
135 return _media
.MediaCtrl_Seek(*args
, **kwargs
)
137 def Tell(*args
, **kwargs
):
138 """Tell(self) -> wxFileOffset"""
139 return _media
.MediaCtrl_Tell(*args
, **kwargs
)
141 def Length(*args
, **kwargs
):
142 """Length(self) -> wxFileOffset"""
143 return _media
.MediaCtrl_Length(*args
, **kwargs
)
145 def GetVolume(*args
, **kwargs
):
146 """GetVolume(self) -> double"""
147 return _media
.MediaCtrl_GetVolume(*args
, **kwargs
)
149 def SetVolume(*args
, **kwargs
):
150 """SetVolume(self, double dVolume) -> bool"""
151 return _media
.MediaCtrl_SetVolume(*args
, **kwargs
)
153 def ShowPlayerControls(*args
, **kwargs
):
154 """ShowPlayerControls(self, int flags=MEDIACTRLPLAYERCONTROLS_DEFAULT) -> bool"""
155 return _media
.MediaCtrl_ShowPlayerControls(*args
, **kwargs
)
157 def Load(*args
, **kwargs
):
158 """Load(self, String fileName) -> bool"""
159 return _media
.MediaCtrl_Load(*args
, **kwargs
)
161 def LoadURI(*args
, **kwargs
):
162 """LoadURI(self, String fileName) -> bool"""
163 return _media
.MediaCtrl_LoadURI(*args
, **kwargs
)
165 def LoadURIWithProxy(*args
, **kwargs
):
166 """LoadURIWithProxy(self, String fileName, String proxy) -> bool"""
167 return _media
.MediaCtrl_LoadURIWithProxy(*args
, **kwargs
)
169 LoadFromURI
= LoadURI
170 def GetDownloadProgress(*args
, **kwargs
):
171 """GetDownloadProgress(self) -> wxFileOffset"""
172 return _media
.MediaCtrl_GetDownloadProgress(*args
, **kwargs
)
174 def GetDownloadTotal(*args
, **kwargs
):
175 """GetDownloadTotal(self) -> wxFileOffset"""
176 return _media
.MediaCtrl_GetDownloadTotal(*args
, **kwargs
)
178 _media
.MediaCtrl_swigregister(MediaCtrl
)
179 MediaCtrlNameStr
= cvar
.MediaCtrlNameStr
181 def PreMediaCtrl(*args
, **kwargs
):
182 """PreMediaCtrl() -> MediaCtrl"""
183 val
= _media
.new_PreMediaCtrl(*args
, **kwargs
)
186 wxEVT_MEDIA_FINISHED
= _media
.wxEVT_MEDIA_FINISHED
187 wxEVT_MEDIA_STOP
= _media
.wxEVT_MEDIA_STOP
188 wxEVT_MEDIA_LOADED
= _media
.wxEVT_MEDIA_LOADED
189 wxEVT_MEDIA_STATECHANGED
= _media
.wxEVT_MEDIA_STATECHANGED
190 wxEVT_MEDIA_PLAY
= _media
.wxEVT_MEDIA_PLAY
191 wxEVT_MEDIA_PAUSE
= _media
.wxEVT_MEDIA_PAUSE
192 EVT_MEDIA_FINISHED
= wx
.PyEventBinder( wxEVT_MEDIA_FINISHED
, 1)
193 EVT_MEDIA_STOP
= wx
.PyEventBinder( wxEVT_MEDIA_STOP
, 1)
194 EVT_MEDIA_LOADED
= wx
.PyEventBinder( wxEVT_MEDIA_LOADED
, 1)
195 EVT_MEDIA_STATECHANGED
= wx
.PyEventBinder( wxEVT_MEDIA_STATECHANGED
, 1)
196 EVT_MEDIA_PLAY
= wx
.PyEventBinder( wxEVT_MEDIA_PLAY
, 1)
197 EVT_MEDIA_PAUSE
= wx
.PyEventBinder( wxEVT_MEDIA_PAUSE
, 1)