1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
10 /// <summary>Efl media player interface</summary>
11 [Efl.IPlayerConcrete.NativeMethods]
12 [Efl.Eo.BindingEntity]
13 public interface IPlayer :
14 Efl.Eo.IWrapper, IDisposable
16 /// <summary>Whether or not the playable can be played.</summary>
17 /// <returns><c>true</c> if the object have playable data, <c>false</c> otherwise</returns>
19 /// <summary>Get play/pause state of the media file.</summary>
20 /// <returns><c>true</c> if playing, <c>false</c> otherwise.</returns>
22 /// <summary>Set play/pause state of the media file.
23 /// This functions sets the currently playing status of the video. Using this function to play or pause the video doesn't alter it's current position.</summary>
24 /// <param name="play"><c>true</c> if playing, <c>false</c> otherwise.</param>
25 void SetPlay(bool play);
26 /// <summary>Get the position in the media file.
27 /// The position is returned as the number of seconds since the beginning of the media file.</summary>
28 /// <returns>The position (in seconds).</returns>
30 /// <summary>Set the position in the media file.
31 /// This functions sets the current position of the media file to "sec", this only works on seekable streams. Setting the position doesn't change the playing state of the media file.</summary>
32 /// <param name="sec">The position (in seconds).</param>
33 void SetPos(double sec);
34 /// <summary>Get how much of the file has been played.
35 /// This function gets the progress in playing the file, the return value is in the [0, 1] range.</summary>
36 /// <returns>The progress within the [0, 1] range.</returns>
38 /// <summary>Control the play speed of the media file.
39 /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on.</summary>
40 /// <returns>The play speed in the [0, infinity) range.</returns>
41 double GetPlaySpeed();
42 /// <summary>Control the play speed of the media file.
43 /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on.</summary>
44 /// <param name="speed">The play speed in the [0, infinity) range.</param>
45 void SetPlaySpeed(double speed);
46 /// <summary>Control the audio volume.
47 /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25.</summary>
48 /// <returns>The volume level</returns>
50 /// <summary>Control the audio volume.
51 /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25.</summary>
52 /// <param name="volume">The volume level</param>
53 void SetVolume(double volume);
54 /// <summary>This property controls the audio mute state.</summary>
55 /// <returns>The mute state. <c>true</c> or <c>false</c>.</returns>
57 /// <summary>This property controls the audio mute state.</summary>
58 /// <param name="mute">The mute state. <c>true</c> or <c>false</c>.</param>
59 void SetMute(bool mute);
60 /// <summary>Get the length of play for the media file.</summary>
61 /// <returns>The length of the stream in seconds.</returns>
63 /// <summary>Get whether the media file is seekable.</summary>
64 /// <returns><c>true</c> if seekable.</returns>
66 /// <summary>Start a playing playable object.</summary>
68 /// <summary>Stop playable object.</summary>
70 /// <summary>Whether or not the playable can be played.</summary>
71 /// <value><c>true</c> if the object have playable data, <c>false</c> otherwise</value>
75 /// <summary>Get play/pause state of the media file.</summary>
76 /// <value><c>true</c> if playing, <c>false</c> otherwise.</value>
81 /// <summary>Get the position in the media file.
82 /// The position is returned as the number of seconds since the beginning of the media file.</summary>
83 /// <value>The position (in seconds).</value>
88 /// <summary>Get how much of the file has been played.
89 /// This function gets the progress in playing the file, the return value is in the [0, 1] range.</summary>
90 /// <value>The progress within the [0, 1] range.</value>
94 /// <summary>Control the play speed of the media file.
95 /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on.</summary>
96 /// <value>The play speed in the [0, infinity) range.</value>
101 /// <summary>Control the audio volume.
102 /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25.</summary>
103 /// <value>The volume level</value>
108 /// <summary>This property controls the audio mute state.</summary>
109 /// <value>The mute state. <c>true</c> or <c>false</c>.</value>
114 /// <summary>Get the length of play for the media file.</summary>
115 /// <value>The length of the stream in seconds.</value>
119 /// <summary>Get whether the media file is seekable.</summary>
120 /// <value><c>true</c> if seekable.</value>
125 /// <summary>Efl media player interface</summary>
126 sealed public class IPlayerConcrete :
131 ///<summary>Pointer to the native class description.</summary>
132 public override System.IntPtr NativeClass
136 if (((object)this).GetType() == typeof(IPlayerConcrete))
138 return GetEflClassStatic();
142 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
147 /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
148 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
149 private IPlayerConcrete(ConstructingHandle ch) : base(ch)
153 [System.Runtime.InteropServices.DllImport("libefl.so.1")] internal static extern System.IntPtr
154 efl_player_interface_get();
155 /// <summary>Initializes a new instance of the <see cref="IPlayer"/> class.
156 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
157 /// <param name="wh">The native pointer to be wrapped.</param>
158 private IPlayerConcrete(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
162 /// <summary>Whether or not the playable can be played.</summary>
163 /// <returns><c>true</c> if the object have playable data, <c>false</c> otherwise</returns>
164 public bool GetPlayable() {
165 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_playable_get_ptr.Value.Delegate(this.NativeHandle);
166 Eina.Error.RaiseIfUnhandledException();
169 /// <summary>Get play/pause state of the media file.</summary>
170 /// <returns><c>true</c> if playing, <c>false</c> otherwise.</returns>
171 public bool GetPlay() {
172 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_get_ptr.Value.Delegate(this.NativeHandle);
173 Eina.Error.RaiseIfUnhandledException();
176 /// <summary>Set play/pause state of the media file.
177 /// This functions sets the currently playing status of the video. Using this function to play or pause the video doesn't alter it's current position.</summary>
178 /// <param name="play"><c>true</c> if playing, <c>false</c> otherwise.</param>
179 public void SetPlay(bool play) {
180 Efl.IPlayerConcrete.NativeMethods.efl_player_play_set_ptr.Value.Delegate(this.NativeHandle,play);
181 Eina.Error.RaiseIfUnhandledException();
183 /// <summary>Get the position in the media file.
184 /// The position is returned as the number of seconds since the beginning of the media file.</summary>
185 /// <returns>The position (in seconds).</returns>
186 public double GetPos() {
187 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_pos_get_ptr.Value.Delegate(this.NativeHandle);
188 Eina.Error.RaiseIfUnhandledException();
191 /// <summary>Set the position in the media file.
192 /// This functions sets the current position of the media file to "sec", this only works on seekable streams. Setting the position doesn't change the playing state of the media file.</summary>
193 /// <param name="sec">The position (in seconds).</param>
194 public void SetPos(double sec) {
195 Efl.IPlayerConcrete.NativeMethods.efl_player_pos_set_ptr.Value.Delegate(this.NativeHandle,sec);
196 Eina.Error.RaiseIfUnhandledException();
198 /// <summary>Get how much of the file has been played.
199 /// This function gets the progress in playing the file, the return value is in the [0, 1] range.</summary>
200 /// <returns>The progress within the [0, 1] range.</returns>
201 public double GetProgress() {
202 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_progress_get_ptr.Value.Delegate(this.NativeHandle);
203 Eina.Error.RaiseIfUnhandledException();
206 /// <summary>Control the play speed of the media file.
207 /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on.</summary>
208 /// <returns>The play speed in the [0, infinity) range.</returns>
209 public double GetPlaySpeed() {
210 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_get_ptr.Value.Delegate(this.NativeHandle);
211 Eina.Error.RaiseIfUnhandledException();
214 /// <summary>Control the play speed of the media file.
215 /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on.</summary>
216 /// <param name="speed">The play speed in the [0, infinity) range.</param>
217 public void SetPlaySpeed(double speed) {
218 Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_set_ptr.Value.Delegate(this.NativeHandle,speed);
219 Eina.Error.RaiseIfUnhandledException();
221 /// <summary>Control the audio volume.
222 /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25.</summary>
223 /// <returns>The volume level</returns>
224 public double GetVolume() {
225 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_volume_get_ptr.Value.Delegate(this.NativeHandle);
226 Eina.Error.RaiseIfUnhandledException();
229 /// <summary>Control the audio volume.
230 /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25.</summary>
231 /// <param name="volume">The volume level</param>
232 public void SetVolume(double volume) {
233 Efl.IPlayerConcrete.NativeMethods.efl_player_volume_set_ptr.Value.Delegate(this.NativeHandle,volume);
234 Eina.Error.RaiseIfUnhandledException();
236 /// <summary>This property controls the audio mute state.</summary>
237 /// <returns>The mute state. <c>true</c> or <c>false</c>.</returns>
238 public bool GetMute() {
239 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_mute_get_ptr.Value.Delegate(this.NativeHandle);
240 Eina.Error.RaiseIfUnhandledException();
243 /// <summary>This property controls the audio mute state.</summary>
244 /// <param name="mute">The mute state. <c>true</c> or <c>false</c>.</param>
245 public void SetMute(bool mute) {
246 Efl.IPlayerConcrete.NativeMethods.efl_player_mute_set_ptr.Value.Delegate(this.NativeHandle,mute);
247 Eina.Error.RaiseIfUnhandledException();
249 /// <summary>Get the length of play for the media file.</summary>
250 /// <returns>The length of the stream in seconds.</returns>
251 public double GetLength() {
252 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_length_get_ptr.Value.Delegate(this.NativeHandle);
253 Eina.Error.RaiseIfUnhandledException();
256 /// <summary>Get whether the media file is seekable.</summary>
257 /// <returns><c>true</c> if seekable.</returns>
258 public bool GetSeekable() {
259 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_seekable_get_ptr.Value.Delegate(this.NativeHandle);
260 Eina.Error.RaiseIfUnhandledException();
263 /// <summary>Start a playing playable object.</summary>
264 public void Start() {
265 Efl.IPlayerConcrete.NativeMethods.efl_player_start_ptr.Value.Delegate(this.NativeHandle);
266 Eina.Error.RaiseIfUnhandledException();
268 /// <summary>Stop playable object.</summary>
270 Efl.IPlayerConcrete.NativeMethods.efl_player_stop_ptr.Value.Delegate(this.NativeHandle);
271 Eina.Error.RaiseIfUnhandledException();
273 /// <summary>Whether or not the playable can be played.</summary>
274 /// <value><c>true</c> if the object have playable data, <c>false</c> otherwise</value>
275 public bool Playable {
276 get { return GetPlayable(); }
278 /// <summary>Get play/pause state of the media file.</summary>
279 /// <value><c>true</c> if playing, <c>false</c> otherwise.</value>
281 get { return GetPlay(); }
282 set { SetPlay(value); }
284 /// <summary>Get the position in the media file.
285 /// The position is returned as the number of seconds since the beginning of the media file.</summary>
286 /// <value>The position (in seconds).</value>
288 get { return GetPos(); }
289 set { SetPos(value); }
291 /// <summary>Get how much of the file has been played.
292 /// This function gets the progress in playing the file, the return value is in the [0, 1] range.</summary>
293 /// <value>The progress within the [0, 1] range.</value>
294 public double Progress {
295 get { return GetProgress(); }
297 /// <summary>Control the play speed of the media file.
298 /// This function control the speed with which the media file will be played. 1.0 represents the normal speed, 2 double speed, 0.5 half speed and so on.</summary>
299 /// <value>The play speed in the [0, infinity) range.</value>
300 public double PlaySpeed {
301 get { return GetPlaySpeed(); }
302 set { SetPlaySpeed(value); }
304 /// <summary>Control the audio volume.
305 /// Controls the audio volume of the stream being played. This has nothing to do with the system volume. This volume will be multiplied by the system volume. e.g.: if the current volume level is 0.5, and the system volume is 50%, it will be 0.5 * 0.5 = 0.25.</summary>
306 /// <value>The volume level</value>
307 public double Volume {
308 get { return GetVolume(); }
309 set { SetVolume(value); }
311 /// <summary>This property controls the audio mute state.</summary>
312 /// <value>The mute state. <c>true</c> or <c>false</c>.</value>
314 get { return GetMute(); }
315 set { SetMute(value); }
317 /// <summary>Get the length of play for the media file.</summary>
318 /// <value>The length of the stream in seconds.</value>
319 public double Length {
320 get { return GetLength(); }
322 /// <summary>Get whether the media file is seekable.</summary>
323 /// <value><c>true</c> if seekable.</value>
324 public bool Seekable {
325 get { return GetSeekable(); }
327 private static IntPtr GetEflClassStatic()
329 return Efl.IPlayerConcrete.efl_player_interface_get();
331 /// <summary>Wrapper for native methods and virtual method delegates.
332 /// For internal use by generated code only.</summary>
333 public new class NativeMethods : Efl.Eo.EoWrapper.NativeMethods
335 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
336 /// <summary>Gets the list of Eo operations to override.</summary>
337 /// <returns>The list of Eo operations to be overload.</returns>
338 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
340 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
341 var methods = Efl.Eo.Globals.GetUserMethods(type);
343 if (efl_player_playable_get_static_delegate == null)
345 efl_player_playable_get_static_delegate = new efl_player_playable_get_delegate(playable_get);
348 if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null)
350 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_playable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_playable_get_static_delegate) });
353 if (efl_player_play_get_static_delegate == null)
355 efl_player_play_get_static_delegate = new efl_player_play_get_delegate(play_get);
358 if (methods.FirstOrDefault(m => m.Name == "GetPlay") != null)
360 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_get_static_delegate) });
363 if (efl_player_play_set_static_delegate == null)
365 efl_player_play_set_static_delegate = new efl_player_play_set_delegate(play_set);
368 if (methods.FirstOrDefault(m => m.Name == "SetPlay") != null)
370 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_set_static_delegate) });
373 if (efl_player_pos_get_static_delegate == null)
375 efl_player_pos_get_static_delegate = new efl_player_pos_get_delegate(pos_get);
378 if (methods.FirstOrDefault(m => m.Name == "GetPos") != null)
380 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_pos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_get_static_delegate) });
383 if (efl_player_pos_set_static_delegate == null)
385 efl_player_pos_set_static_delegate = new efl_player_pos_set_delegate(pos_set);
388 if (methods.FirstOrDefault(m => m.Name == "SetPos") != null)
390 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_pos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_pos_set_static_delegate) });
393 if (efl_player_progress_get_static_delegate == null)
395 efl_player_progress_get_static_delegate = new efl_player_progress_get_delegate(progress_get);
398 if (methods.FirstOrDefault(m => m.Name == "GetProgress") != null)
400 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_progress_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_progress_get_static_delegate) });
403 if (efl_player_play_speed_get_static_delegate == null)
405 efl_player_play_speed_get_static_delegate = new efl_player_play_speed_get_delegate(play_speed_get);
408 if (methods.FirstOrDefault(m => m.Name == "GetPlaySpeed") != null)
410 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_speed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_get_static_delegate) });
413 if (efl_player_play_speed_set_static_delegate == null)
415 efl_player_play_speed_set_static_delegate = new efl_player_play_speed_set_delegate(play_speed_set);
418 if (methods.FirstOrDefault(m => m.Name == "SetPlaySpeed") != null)
420 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_play_speed_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_play_speed_set_static_delegate) });
423 if (efl_player_volume_get_static_delegate == null)
425 efl_player_volume_get_static_delegate = new efl_player_volume_get_delegate(volume_get);
428 if (methods.FirstOrDefault(m => m.Name == "GetVolume") != null)
430 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_volume_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_get_static_delegate) });
433 if (efl_player_volume_set_static_delegate == null)
435 efl_player_volume_set_static_delegate = new efl_player_volume_set_delegate(volume_set);
438 if (methods.FirstOrDefault(m => m.Name == "SetVolume") != null)
440 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_volume_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_volume_set_static_delegate) });
443 if (efl_player_mute_get_static_delegate == null)
445 efl_player_mute_get_static_delegate = new efl_player_mute_get_delegate(mute_get);
448 if (methods.FirstOrDefault(m => m.Name == "GetMute") != null)
450 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_mute_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_get_static_delegate) });
453 if (efl_player_mute_set_static_delegate == null)
455 efl_player_mute_set_static_delegate = new efl_player_mute_set_delegate(mute_set);
458 if (methods.FirstOrDefault(m => m.Name == "SetMute") != null)
460 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_mute_set"), func = Marshal.GetFunctionPointerForDelegate(efl_player_mute_set_static_delegate) });
463 if (efl_player_length_get_static_delegate == null)
465 efl_player_length_get_static_delegate = new efl_player_length_get_delegate(length_get);
468 if (methods.FirstOrDefault(m => m.Name == "GetLength") != null)
470 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_length_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_length_get_static_delegate) });
473 if (efl_player_seekable_get_static_delegate == null)
475 efl_player_seekable_get_static_delegate = new efl_player_seekable_get_delegate(seekable_get);
478 if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null)
480 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_seekable_get"), func = Marshal.GetFunctionPointerForDelegate(efl_player_seekable_get_static_delegate) });
483 if (efl_player_start_static_delegate == null)
485 efl_player_start_static_delegate = new efl_player_start_delegate(start);
488 if (methods.FirstOrDefault(m => m.Name == "Start") != null)
490 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_start"), func = Marshal.GetFunctionPointerForDelegate(efl_player_start_static_delegate) });
493 if (efl_player_stop_static_delegate == null)
495 efl_player_stop_static_delegate = new efl_player_stop_delegate(stop);
498 if (methods.FirstOrDefault(m => m.Name == "Stop") != null)
500 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_player_stop"), func = Marshal.GetFunctionPointerForDelegate(efl_player_stop_static_delegate) });
505 /// <summary>Returns the Eo class for the native methods of this class.</summary>
506 /// <returns>The native class pointer.</returns>
507 public override IntPtr GetEflClass()
509 return Efl.IPlayerConcrete.efl_player_interface_get();
512 #pragma warning disable CA1707, CS1591, SA1300, SA1600
514 [return: MarshalAs(UnmanagedType.U1)]
515 private delegate bool efl_player_playable_get_delegate(System.IntPtr obj, System.IntPtr pd);
517 [return: MarshalAs(UnmanagedType.U1)]
518 public delegate bool efl_player_playable_get_api_delegate(System.IntPtr obj);
520 public static Efl.Eo.FunctionWrapper<efl_player_playable_get_api_delegate> efl_player_playable_get_ptr = new Efl.Eo.FunctionWrapper<efl_player_playable_get_api_delegate>(Module, "efl_player_playable_get");
522 private static bool playable_get(System.IntPtr obj, System.IntPtr pd)
524 Eina.Log.Debug("function efl_player_playable_get was called");
525 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
528 bool _ret_var = default(bool);
531 _ret_var = ((IPlayer)ws.Target).GetPlayable();
535 Eina.Log.Warning($"Callback error: {e.ToString()}");
536 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
544 return efl_player_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
548 private static efl_player_playable_get_delegate efl_player_playable_get_static_delegate;
550 [return: MarshalAs(UnmanagedType.U1)]
551 private delegate bool efl_player_play_get_delegate(System.IntPtr obj, System.IntPtr pd);
553 [return: MarshalAs(UnmanagedType.U1)]
554 public delegate bool efl_player_play_get_api_delegate(System.IntPtr obj);
556 public static Efl.Eo.FunctionWrapper<efl_player_play_get_api_delegate> efl_player_play_get_ptr = new Efl.Eo.FunctionWrapper<efl_player_play_get_api_delegate>(Module, "efl_player_play_get");
558 private static bool play_get(System.IntPtr obj, System.IntPtr pd)
560 Eina.Log.Debug("function efl_player_play_get was called");
561 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
564 bool _ret_var = default(bool);
567 _ret_var = ((IPlayer)ws.Target).GetPlay();
571 Eina.Log.Warning($"Callback error: {e.ToString()}");
572 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
580 return efl_player_play_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
584 private static efl_player_play_get_delegate efl_player_play_get_static_delegate;
587 private delegate void efl_player_play_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool play);
590 public delegate void efl_player_play_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool play);
592 public static Efl.Eo.FunctionWrapper<efl_player_play_set_api_delegate> efl_player_play_set_ptr = new Efl.Eo.FunctionWrapper<efl_player_play_set_api_delegate>(Module, "efl_player_play_set");
594 private static void play_set(System.IntPtr obj, System.IntPtr pd, bool play)
596 Eina.Log.Debug("function efl_player_play_set was called");
597 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
603 ((IPlayer)ws.Target).SetPlay(play);
607 Eina.Log.Warning($"Callback error: {e.ToString()}");
608 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
615 efl_player_play_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), play);
619 private static efl_player_play_set_delegate efl_player_play_set_static_delegate;
622 private delegate double efl_player_pos_get_delegate(System.IntPtr obj, System.IntPtr pd);
625 public delegate double efl_player_pos_get_api_delegate(System.IntPtr obj);
627 public static Efl.Eo.FunctionWrapper<efl_player_pos_get_api_delegate> efl_player_pos_get_ptr = new Efl.Eo.FunctionWrapper<efl_player_pos_get_api_delegate>(Module, "efl_player_pos_get");
629 private static double pos_get(System.IntPtr obj, System.IntPtr pd)
631 Eina.Log.Debug("function efl_player_pos_get was called");
632 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
635 double _ret_var = default(double);
638 _ret_var = ((IPlayer)ws.Target).GetPos();
642 Eina.Log.Warning($"Callback error: {e.ToString()}");
643 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
651 return efl_player_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
655 private static efl_player_pos_get_delegate efl_player_pos_get_static_delegate;
658 private delegate void efl_player_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec);
661 public delegate void efl_player_pos_set_api_delegate(System.IntPtr obj, double sec);
663 public static Efl.Eo.FunctionWrapper<efl_player_pos_set_api_delegate> efl_player_pos_set_ptr = new Efl.Eo.FunctionWrapper<efl_player_pos_set_api_delegate>(Module, "efl_player_pos_set");
665 private static void pos_set(System.IntPtr obj, System.IntPtr pd, double sec)
667 Eina.Log.Debug("function efl_player_pos_set was called");
668 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
674 ((IPlayer)ws.Target).SetPos(sec);
678 Eina.Log.Warning($"Callback error: {e.ToString()}");
679 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
686 efl_player_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec);
690 private static efl_player_pos_set_delegate efl_player_pos_set_static_delegate;
693 private delegate double efl_player_progress_get_delegate(System.IntPtr obj, System.IntPtr pd);
696 public delegate double efl_player_progress_get_api_delegate(System.IntPtr obj);
698 public static Efl.Eo.FunctionWrapper<efl_player_progress_get_api_delegate> efl_player_progress_get_ptr = new Efl.Eo.FunctionWrapper<efl_player_progress_get_api_delegate>(Module, "efl_player_progress_get");
700 private static double progress_get(System.IntPtr obj, System.IntPtr pd)
702 Eina.Log.Debug("function efl_player_progress_get was called");
703 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
706 double _ret_var = default(double);
709 _ret_var = ((IPlayer)ws.Target).GetProgress();
713 Eina.Log.Warning($"Callback error: {e.ToString()}");
714 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
722 return efl_player_progress_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
726 private static efl_player_progress_get_delegate efl_player_progress_get_static_delegate;
729 private delegate double efl_player_play_speed_get_delegate(System.IntPtr obj, System.IntPtr pd);
732 public delegate double efl_player_play_speed_get_api_delegate(System.IntPtr obj);
734 public static Efl.Eo.FunctionWrapper<efl_player_play_speed_get_api_delegate> efl_player_play_speed_get_ptr = new Efl.Eo.FunctionWrapper<efl_player_play_speed_get_api_delegate>(Module, "efl_player_play_speed_get");
736 private static double play_speed_get(System.IntPtr obj, System.IntPtr pd)
738 Eina.Log.Debug("function efl_player_play_speed_get was called");
739 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
742 double _ret_var = default(double);
745 _ret_var = ((IPlayer)ws.Target).GetPlaySpeed();
749 Eina.Log.Warning($"Callback error: {e.ToString()}");
750 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
758 return efl_player_play_speed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
762 private static efl_player_play_speed_get_delegate efl_player_play_speed_get_static_delegate;
765 private delegate void efl_player_play_speed_set_delegate(System.IntPtr obj, System.IntPtr pd, double speed);
768 public delegate void efl_player_play_speed_set_api_delegate(System.IntPtr obj, double speed);
770 public static Efl.Eo.FunctionWrapper<efl_player_play_speed_set_api_delegate> efl_player_play_speed_set_ptr = new Efl.Eo.FunctionWrapper<efl_player_play_speed_set_api_delegate>(Module, "efl_player_play_speed_set");
772 private static void play_speed_set(System.IntPtr obj, System.IntPtr pd, double speed)
774 Eina.Log.Debug("function efl_player_play_speed_set was called");
775 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
781 ((IPlayer)ws.Target).SetPlaySpeed(speed);
785 Eina.Log.Warning($"Callback error: {e.ToString()}");
786 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
793 efl_player_play_speed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), speed);
797 private static efl_player_play_speed_set_delegate efl_player_play_speed_set_static_delegate;
800 private delegate double efl_player_volume_get_delegate(System.IntPtr obj, System.IntPtr pd);
803 public delegate double efl_player_volume_get_api_delegate(System.IntPtr obj);
805 public static Efl.Eo.FunctionWrapper<efl_player_volume_get_api_delegate> efl_player_volume_get_ptr = new Efl.Eo.FunctionWrapper<efl_player_volume_get_api_delegate>(Module, "efl_player_volume_get");
807 private static double volume_get(System.IntPtr obj, System.IntPtr pd)
809 Eina.Log.Debug("function efl_player_volume_get was called");
810 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
813 double _ret_var = default(double);
816 _ret_var = ((IPlayer)ws.Target).GetVolume();
820 Eina.Log.Warning($"Callback error: {e.ToString()}");
821 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
829 return efl_player_volume_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
833 private static efl_player_volume_get_delegate efl_player_volume_get_static_delegate;
836 private delegate void efl_player_volume_set_delegate(System.IntPtr obj, System.IntPtr pd, double volume);
839 public delegate void efl_player_volume_set_api_delegate(System.IntPtr obj, double volume);
841 public static Efl.Eo.FunctionWrapper<efl_player_volume_set_api_delegate> efl_player_volume_set_ptr = new Efl.Eo.FunctionWrapper<efl_player_volume_set_api_delegate>(Module, "efl_player_volume_set");
843 private static void volume_set(System.IntPtr obj, System.IntPtr pd, double volume)
845 Eina.Log.Debug("function efl_player_volume_set was called");
846 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
852 ((IPlayer)ws.Target).SetVolume(volume);
856 Eina.Log.Warning($"Callback error: {e.ToString()}");
857 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
864 efl_player_volume_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), volume);
868 private static efl_player_volume_set_delegate efl_player_volume_set_static_delegate;
870 [return: MarshalAs(UnmanagedType.U1)]
871 private delegate bool efl_player_mute_get_delegate(System.IntPtr obj, System.IntPtr pd);
873 [return: MarshalAs(UnmanagedType.U1)]
874 public delegate bool efl_player_mute_get_api_delegate(System.IntPtr obj);
876 public static Efl.Eo.FunctionWrapper<efl_player_mute_get_api_delegate> efl_player_mute_get_ptr = new Efl.Eo.FunctionWrapper<efl_player_mute_get_api_delegate>(Module, "efl_player_mute_get");
878 private static bool mute_get(System.IntPtr obj, System.IntPtr pd)
880 Eina.Log.Debug("function efl_player_mute_get was called");
881 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
884 bool _ret_var = default(bool);
887 _ret_var = ((IPlayer)ws.Target).GetMute();
891 Eina.Log.Warning($"Callback error: {e.ToString()}");
892 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
900 return efl_player_mute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
904 private static efl_player_mute_get_delegate efl_player_mute_get_static_delegate;
907 private delegate void efl_player_mute_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool mute);
910 public delegate void efl_player_mute_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool mute);
912 public static Efl.Eo.FunctionWrapper<efl_player_mute_set_api_delegate> efl_player_mute_set_ptr = new Efl.Eo.FunctionWrapper<efl_player_mute_set_api_delegate>(Module, "efl_player_mute_set");
914 private static void mute_set(System.IntPtr obj, System.IntPtr pd, bool mute)
916 Eina.Log.Debug("function efl_player_mute_set was called");
917 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
923 ((IPlayer)ws.Target).SetMute(mute);
927 Eina.Log.Warning($"Callback error: {e.ToString()}");
928 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
935 efl_player_mute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mute);
939 private static efl_player_mute_set_delegate efl_player_mute_set_static_delegate;
942 private delegate double efl_player_length_get_delegate(System.IntPtr obj, System.IntPtr pd);
945 public delegate double efl_player_length_get_api_delegate(System.IntPtr obj);
947 public static Efl.Eo.FunctionWrapper<efl_player_length_get_api_delegate> efl_player_length_get_ptr = new Efl.Eo.FunctionWrapper<efl_player_length_get_api_delegate>(Module, "efl_player_length_get");
949 private static double length_get(System.IntPtr obj, System.IntPtr pd)
951 Eina.Log.Debug("function efl_player_length_get was called");
952 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
955 double _ret_var = default(double);
958 _ret_var = ((IPlayer)ws.Target).GetLength();
962 Eina.Log.Warning($"Callback error: {e.ToString()}");
963 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
971 return efl_player_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
975 private static efl_player_length_get_delegate efl_player_length_get_static_delegate;
977 [return: MarshalAs(UnmanagedType.U1)]
978 private delegate bool efl_player_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd);
980 [return: MarshalAs(UnmanagedType.U1)]
981 public delegate bool efl_player_seekable_get_api_delegate(System.IntPtr obj);
983 public static Efl.Eo.FunctionWrapper<efl_player_seekable_get_api_delegate> efl_player_seekable_get_ptr = new Efl.Eo.FunctionWrapper<efl_player_seekable_get_api_delegate>(Module, "efl_player_seekable_get");
985 private static bool seekable_get(System.IntPtr obj, System.IntPtr pd)
987 Eina.Log.Debug("function efl_player_seekable_get was called");
988 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
991 bool _ret_var = default(bool);
994 _ret_var = ((IPlayer)ws.Target).GetSeekable();
998 Eina.Log.Warning($"Callback error: {e.ToString()}");
999 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1007 return efl_player_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1011 private static efl_player_seekable_get_delegate efl_player_seekable_get_static_delegate;
1014 private delegate void efl_player_start_delegate(System.IntPtr obj, System.IntPtr pd);
1017 public delegate void efl_player_start_api_delegate(System.IntPtr obj);
1019 public static Efl.Eo.FunctionWrapper<efl_player_start_api_delegate> efl_player_start_ptr = new Efl.Eo.FunctionWrapper<efl_player_start_api_delegate>(Module, "efl_player_start");
1021 private static void start(System.IntPtr obj, System.IntPtr pd)
1023 Eina.Log.Debug("function efl_player_start was called");
1024 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1030 ((IPlayer)ws.Target).Start();
1034 Eina.Log.Warning($"Callback error: {e.ToString()}");
1035 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1042 efl_player_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1046 private static efl_player_start_delegate efl_player_start_static_delegate;
1049 private delegate void efl_player_stop_delegate(System.IntPtr obj, System.IntPtr pd);
1052 public delegate void efl_player_stop_api_delegate(System.IntPtr obj);
1054 public static Efl.Eo.FunctionWrapper<efl_player_stop_api_delegate> efl_player_stop_ptr = new Efl.Eo.FunctionWrapper<efl_player_stop_api_delegate>(Module, "efl_player_stop");
1056 private static void stop(System.IntPtr obj, System.IntPtr pd)
1058 Eina.Log.Debug("function efl_player_stop was called");
1059 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1065 ((IPlayer)ws.Target).Stop();
1069 Eina.Log.Warning($"Callback error: {e.ToString()}");
1070 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1077 efl_player_stop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1081 private static efl_player_stop_delegate efl_player_stop_static_delegate;
1083 #pragma warning restore CA1707, CS1591, SA1300, SA1600