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 public interface IPlayer :
13 Efl.Eo.IWrapper, IDisposable
15 /// <summary>Whether or not the playable can be played.</summary>
16 /// <returns><c>true</c> if the object have playable data, <c>false</c> otherwise</returns>
18 /// <summary>Get play/pause state of the media file.</summary>
19 /// <returns><c>true</c> if playing, <c>false</c> otherwise.</returns>
21 /// <summary>Set play/pause state of the media file.
22 /// 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>
23 /// <param name="play"><c>true</c> if playing, <c>false</c> otherwise.</param>
24 void SetPlay(bool play);
25 /// <summary>Get the position in the media file.
26 /// The position is returned as the number of seconds since the beginning of the media file.</summary>
27 /// <returns>The position (in seconds).</returns>
29 /// <summary>Set the position in the media file.
30 /// 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>
31 /// <param name="sec">The position (in seconds).</param>
32 void SetPos(double sec);
33 /// <summary>Get how much of the file has been played.
34 /// This function gets the progress in playing the file, the return value is in the [0, 1] range.</summary>
35 /// <returns>The progress within the [0, 1] range.</returns>
37 /// <summary>Control the play speed of the media file.
38 /// 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>
39 /// <returns>The play speed in the [0, infinity) range.</returns>
40 double GetPlaySpeed();
41 /// <summary>Control the play speed of the media file.
42 /// 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>
43 /// <param name="speed">The play speed in the [0, infinity) range.</param>
44 void SetPlaySpeed(double speed);
45 /// <summary>Control the audio volume.
46 /// 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>
47 /// <returns>The volume level</returns>
49 /// <summary>Control the audio volume.
50 /// 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>
51 /// <param name="volume">The volume level</param>
52 void SetVolume(double volume);
53 /// <summary>This property controls the audio mute state.</summary>
54 /// <returns>The mute state. <c>true</c> or <c>false</c>.</returns>
56 /// <summary>This property controls the audio mute state.</summary>
57 /// <param name="mute">The mute state. <c>true</c> or <c>false</c>.</param>
58 void SetMute(bool mute);
59 /// <summary>Get the length of play for the media file.</summary>
60 /// <returns>The length of the stream in seconds.</returns>
62 /// <summary>Get whether the media file is seekable.</summary>
63 /// <returns><c>true</c> if seekable.</returns>
65 /// <summary>Start a playing playable object.</summary>
67 /// <summary>Stop playable object.</summary>
69 /// <summary>Whether or not the playable can be played.</summary>
70 /// <value><c>true</c> if the object have playable data, <c>false</c> otherwise</value>
74 /// <summary>Get play/pause state of the media file.</summary>
75 /// <value><c>true</c> if playing, <c>false</c> otherwise.</value>
80 /// <summary>Get the position in the media file.
81 /// The position is returned as the number of seconds since the beginning of the media file.</summary>
82 /// <value>The position (in seconds).</value>
87 /// <summary>Get how much of the file has been played.
88 /// This function gets the progress in playing the file, the return value is in the [0, 1] range.</summary>
89 /// <value>The progress within the [0, 1] range.</value>
93 /// <summary>Control the play speed of the media file.
94 /// 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>
95 /// <value>The play speed in the [0, infinity) range.</value>
100 /// <summary>Control the audio volume.
101 /// 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>
102 /// <value>The volume level</value>
107 /// <summary>This property controls the audio mute state.</summary>
108 /// <value>The mute state. <c>true</c> or <c>false</c>.</value>
113 /// <summary>Get the length of play for the media file.</summary>
114 /// <value>The length of the stream in seconds.</value>
118 /// <summary>Get whether the media file is seekable.</summary>
119 /// <value><c>true</c> if seekable.</value>
124 /// <summary>Efl media player interface</summary>
125 sealed public class IPlayerConcrete :
130 ///<summary>Pointer to the native class description.</summary>
131 public override System.IntPtr NativeClass
135 if (((object)this).GetType() == typeof(IPlayerConcrete))
137 return GetEflClassStatic();
141 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
146 [System.Runtime.InteropServices.DllImport(efl.Libs.Efl)] internal static extern System.IntPtr
147 efl_player_interface_get();
148 /// <summary>Initializes a new instance of the <see cref="IPlayer"/> class.
149 /// Internal usage: This is used when interacting with C code and should not be used directly.</summary>
150 private IPlayerConcrete(System.IntPtr raw) : base(raw)
154 /// <summary>Whether or not the playable can be played.</summary>
155 /// <returns><c>true</c> if the object have playable data, <c>false</c> otherwise</returns>
156 public bool GetPlayable() {
157 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_playable_get_ptr.Value.Delegate(this.NativeHandle);
158 Eina.Error.RaiseIfUnhandledException();
161 /// <summary>Get play/pause state of the media file.</summary>
162 /// <returns><c>true</c> if playing, <c>false</c> otherwise.</returns>
163 public bool GetPlay() {
164 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_get_ptr.Value.Delegate(this.NativeHandle);
165 Eina.Error.RaiseIfUnhandledException();
168 /// <summary>Set play/pause state of the media file.
169 /// 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>
170 /// <param name="play"><c>true</c> if playing, <c>false</c> otherwise.</param>
171 public void SetPlay(bool play) {
172 Efl.IPlayerConcrete.NativeMethods.efl_player_play_set_ptr.Value.Delegate(this.NativeHandle,play);
173 Eina.Error.RaiseIfUnhandledException();
175 /// <summary>Get the position in the media file.
176 /// The position is returned as the number of seconds since the beginning of the media file.</summary>
177 /// <returns>The position (in seconds).</returns>
178 public double GetPos() {
179 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_pos_get_ptr.Value.Delegate(this.NativeHandle);
180 Eina.Error.RaiseIfUnhandledException();
183 /// <summary>Set the position in the media file.
184 /// 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>
185 /// <param name="sec">The position (in seconds).</param>
186 public void SetPos(double sec) {
187 Efl.IPlayerConcrete.NativeMethods.efl_player_pos_set_ptr.Value.Delegate(this.NativeHandle,sec);
188 Eina.Error.RaiseIfUnhandledException();
190 /// <summary>Get how much of the file has been played.
191 /// This function gets the progress in playing the file, the return value is in the [0, 1] range.</summary>
192 /// <returns>The progress within the [0, 1] range.</returns>
193 public double GetProgress() {
194 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_progress_get_ptr.Value.Delegate(this.NativeHandle);
195 Eina.Error.RaiseIfUnhandledException();
198 /// <summary>Control the play speed of the media file.
199 /// 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>
200 /// <returns>The play speed in the [0, infinity) range.</returns>
201 public double GetPlaySpeed() {
202 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_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 /// <param name="speed">The play speed in the [0, infinity) range.</param>
209 public void SetPlaySpeed(double speed) {
210 Efl.IPlayerConcrete.NativeMethods.efl_player_play_speed_set_ptr.Value.Delegate(this.NativeHandle,speed);
211 Eina.Error.RaiseIfUnhandledException();
213 /// <summary>Control the audio volume.
214 /// 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>
215 /// <returns>The volume level</returns>
216 public double GetVolume() {
217 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_volume_get_ptr.Value.Delegate(this.NativeHandle);
218 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 /// <param name="volume">The volume level</param>
224 public void SetVolume(double volume) {
225 Efl.IPlayerConcrete.NativeMethods.efl_player_volume_set_ptr.Value.Delegate(this.NativeHandle,volume);
226 Eina.Error.RaiseIfUnhandledException();
228 /// <summary>This property controls the audio mute state.</summary>
229 /// <returns>The mute state. <c>true</c> or <c>false</c>.</returns>
230 public bool GetMute() {
231 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_mute_get_ptr.Value.Delegate(this.NativeHandle);
232 Eina.Error.RaiseIfUnhandledException();
235 /// <summary>This property controls the audio mute state.</summary>
236 /// <param name="mute">The mute state. <c>true</c> or <c>false</c>.</param>
237 public void SetMute(bool mute) {
238 Efl.IPlayerConcrete.NativeMethods.efl_player_mute_set_ptr.Value.Delegate(this.NativeHandle,mute);
239 Eina.Error.RaiseIfUnhandledException();
241 /// <summary>Get the length of play for the media file.</summary>
242 /// <returns>The length of the stream in seconds.</returns>
243 public double GetLength() {
244 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_length_get_ptr.Value.Delegate(this.NativeHandle);
245 Eina.Error.RaiseIfUnhandledException();
248 /// <summary>Get whether the media file is seekable.</summary>
249 /// <returns><c>true</c> if seekable.</returns>
250 public bool GetSeekable() {
251 var _ret_var = Efl.IPlayerConcrete.NativeMethods.efl_player_seekable_get_ptr.Value.Delegate(this.NativeHandle);
252 Eina.Error.RaiseIfUnhandledException();
255 /// <summary>Start a playing playable object.</summary>
256 public void Start() {
257 Efl.IPlayerConcrete.NativeMethods.efl_player_start_ptr.Value.Delegate(this.NativeHandle);
258 Eina.Error.RaiseIfUnhandledException();
260 /// <summary>Stop playable object.</summary>
262 Efl.IPlayerConcrete.NativeMethods.efl_player_stop_ptr.Value.Delegate(this.NativeHandle);
263 Eina.Error.RaiseIfUnhandledException();
265 /// <summary>Whether or not the playable can be played.</summary>
266 /// <value><c>true</c> if the object have playable data, <c>false</c> otherwise</value>
267 public bool Playable {
268 get { return GetPlayable(); }
270 /// <summary>Get play/pause state of the media file.</summary>
271 /// <value><c>true</c> if playing, <c>false</c> otherwise.</value>
273 get { return GetPlay(); }
274 set { SetPlay(value); }
276 /// <summary>Get the position in the media file.
277 /// The position is returned as the number of seconds since the beginning of the media file.</summary>
278 /// <value>The position (in seconds).</value>
280 get { return GetPos(); }
281 set { SetPos(value); }
283 /// <summary>Get how much of the file has been played.
284 /// This function gets the progress in playing the file, the return value is in the [0, 1] range.</summary>
285 /// <value>The progress within the [0, 1] range.</value>
286 public double Progress {
287 get { return GetProgress(); }
289 /// <summary>Control the play speed of the media file.
290 /// 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>
291 /// <value>The play speed in the [0, infinity) range.</value>
292 public double PlaySpeed {
293 get { return GetPlaySpeed(); }
294 set { SetPlaySpeed(value); }
296 /// <summary>Control the audio volume.
297 /// 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>
298 /// <value>The volume level</value>
299 public double Volume {
300 get { return GetVolume(); }
301 set { SetVolume(value); }
303 /// <summary>This property controls the audio mute state.</summary>
304 /// <value>The mute state. <c>true</c> or <c>false</c>.</value>
306 get { return GetMute(); }
307 set { SetMute(value); }
309 /// <summary>Get the length of play for the media file.</summary>
310 /// <value>The length of the stream in seconds.</value>
311 public double Length {
312 get { return GetLength(); }
314 /// <summary>Get whether the media file is seekable.</summary>
315 /// <value><c>true</c> if seekable.</value>
316 public bool Seekable {
317 get { return GetSeekable(); }
319 private static IntPtr GetEflClassStatic()
321 return Efl.IPlayerConcrete.efl_player_interface_get();
323 /// <summary>Wrapper for native methods and virtual method delegates.
324 /// For internal use by generated code only.</summary>
325 public class NativeMethods : Efl.Eo.NativeClass
327 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Efl);
328 /// <summary>Gets the list of Eo operations to override.</summary>
329 /// <returns>The list of Eo operations to be overload.</returns>
330 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
332 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
333 var methods = Efl.Eo.Globals.GetUserMethods(type);
335 if (efl_player_playable_get_static_delegate == null)
337 efl_player_playable_get_static_delegate = new efl_player_playable_get_delegate(playable_get);
340 if (methods.FirstOrDefault(m => m.Name == "GetPlayable") != null)
342 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) });
345 if (efl_player_play_get_static_delegate == null)
347 efl_player_play_get_static_delegate = new efl_player_play_get_delegate(play_get);
350 if (methods.FirstOrDefault(m => m.Name == "GetPlay") != null)
352 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) });
355 if (efl_player_play_set_static_delegate == null)
357 efl_player_play_set_static_delegate = new efl_player_play_set_delegate(play_set);
360 if (methods.FirstOrDefault(m => m.Name == "SetPlay") != null)
362 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) });
365 if (efl_player_pos_get_static_delegate == null)
367 efl_player_pos_get_static_delegate = new efl_player_pos_get_delegate(pos_get);
370 if (methods.FirstOrDefault(m => m.Name == "GetPos") != null)
372 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) });
375 if (efl_player_pos_set_static_delegate == null)
377 efl_player_pos_set_static_delegate = new efl_player_pos_set_delegate(pos_set);
380 if (methods.FirstOrDefault(m => m.Name == "SetPos") != null)
382 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) });
385 if (efl_player_progress_get_static_delegate == null)
387 efl_player_progress_get_static_delegate = new efl_player_progress_get_delegate(progress_get);
390 if (methods.FirstOrDefault(m => m.Name == "GetProgress") != null)
392 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) });
395 if (efl_player_play_speed_get_static_delegate == null)
397 efl_player_play_speed_get_static_delegate = new efl_player_play_speed_get_delegate(play_speed_get);
400 if (methods.FirstOrDefault(m => m.Name == "GetPlaySpeed") != null)
402 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) });
405 if (efl_player_play_speed_set_static_delegate == null)
407 efl_player_play_speed_set_static_delegate = new efl_player_play_speed_set_delegate(play_speed_set);
410 if (methods.FirstOrDefault(m => m.Name == "SetPlaySpeed") != null)
412 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) });
415 if (efl_player_volume_get_static_delegate == null)
417 efl_player_volume_get_static_delegate = new efl_player_volume_get_delegate(volume_get);
420 if (methods.FirstOrDefault(m => m.Name == "GetVolume") != null)
422 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) });
425 if (efl_player_volume_set_static_delegate == null)
427 efl_player_volume_set_static_delegate = new efl_player_volume_set_delegate(volume_set);
430 if (methods.FirstOrDefault(m => m.Name == "SetVolume") != null)
432 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) });
435 if (efl_player_mute_get_static_delegate == null)
437 efl_player_mute_get_static_delegate = new efl_player_mute_get_delegate(mute_get);
440 if (methods.FirstOrDefault(m => m.Name == "GetMute") != null)
442 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) });
445 if (efl_player_mute_set_static_delegate == null)
447 efl_player_mute_set_static_delegate = new efl_player_mute_set_delegate(mute_set);
450 if (methods.FirstOrDefault(m => m.Name == "SetMute") != null)
452 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) });
455 if (efl_player_length_get_static_delegate == null)
457 efl_player_length_get_static_delegate = new efl_player_length_get_delegate(length_get);
460 if (methods.FirstOrDefault(m => m.Name == "GetLength") != null)
462 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) });
465 if (efl_player_seekable_get_static_delegate == null)
467 efl_player_seekable_get_static_delegate = new efl_player_seekable_get_delegate(seekable_get);
470 if (methods.FirstOrDefault(m => m.Name == "GetSeekable") != null)
472 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) });
475 if (efl_player_start_static_delegate == null)
477 efl_player_start_static_delegate = new efl_player_start_delegate(start);
480 if (methods.FirstOrDefault(m => m.Name == "Start") != null)
482 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) });
485 if (efl_player_stop_static_delegate == null)
487 efl_player_stop_static_delegate = new efl_player_stop_delegate(stop);
490 if (methods.FirstOrDefault(m => m.Name == "Stop") != null)
492 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) });
497 /// <summary>Returns the Eo class for the native methods of this class.</summary>
498 /// <returns>The native class pointer.</returns>
499 public override IntPtr GetEflClass()
501 return Efl.IPlayerConcrete.efl_player_interface_get();
504 #pragma warning disable CA1707, CS1591, SA1300, SA1600
506 [return: MarshalAs(UnmanagedType.U1)]
507 private delegate bool efl_player_playable_get_delegate(System.IntPtr obj, System.IntPtr pd);
509 [return: MarshalAs(UnmanagedType.U1)]
510 public delegate bool efl_player_playable_get_api_delegate(System.IntPtr obj);
512 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");
514 private static bool playable_get(System.IntPtr obj, System.IntPtr pd)
516 Eina.Log.Debug("function efl_player_playable_get was called");
517 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
520 bool _ret_var = default(bool);
523 _ret_var = ((IPlayer)ws.Target).GetPlayable();
527 Eina.Log.Warning($"Callback error: {e.ToString()}");
528 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
536 return efl_player_playable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
540 private static efl_player_playable_get_delegate efl_player_playable_get_static_delegate;
542 [return: MarshalAs(UnmanagedType.U1)]
543 private delegate bool efl_player_play_get_delegate(System.IntPtr obj, System.IntPtr pd);
545 [return: MarshalAs(UnmanagedType.U1)]
546 public delegate bool efl_player_play_get_api_delegate(System.IntPtr obj);
548 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");
550 private static bool play_get(System.IntPtr obj, System.IntPtr pd)
552 Eina.Log.Debug("function efl_player_play_get was called");
553 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
556 bool _ret_var = default(bool);
559 _ret_var = ((IPlayer)ws.Target).GetPlay();
563 Eina.Log.Warning($"Callback error: {e.ToString()}");
564 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
572 return efl_player_play_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
576 private static efl_player_play_get_delegate efl_player_play_get_static_delegate;
579 private delegate void efl_player_play_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool play);
582 public delegate void efl_player_play_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool play);
584 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");
586 private static void play_set(System.IntPtr obj, System.IntPtr pd, bool play)
588 Eina.Log.Debug("function efl_player_play_set was called");
589 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
595 ((IPlayer)ws.Target).SetPlay(play);
599 Eina.Log.Warning($"Callback error: {e.ToString()}");
600 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
607 efl_player_play_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), play);
611 private static efl_player_play_set_delegate efl_player_play_set_static_delegate;
614 private delegate double efl_player_pos_get_delegate(System.IntPtr obj, System.IntPtr pd);
617 public delegate double efl_player_pos_get_api_delegate(System.IntPtr obj);
619 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");
621 private static double pos_get(System.IntPtr obj, System.IntPtr pd)
623 Eina.Log.Debug("function efl_player_pos_get was called");
624 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
627 double _ret_var = default(double);
630 _ret_var = ((IPlayer)ws.Target).GetPos();
634 Eina.Log.Warning($"Callback error: {e.ToString()}");
635 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
643 return efl_player_pos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
647 private static efl_player_pos_get_delegate efl_player_pos_get_static_delegate;
650 private delegate void efl_player_pos_set_delegate(System.IntPtr obj, System.IntPtr pd, double sec);
653 public delegate void efl_player_pos_set_api_delegate(System.IntPtr obj, double sec);
655 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");
657 private static void pos_set(System.IntPtr obj, System.IntPtr pd, double sec)
659 Eina.Log.Debug("function efl_player_pos_set was called");
660 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
666 ((IPlayer)ws.Target).SetPos(sec);
670 Eina.Log.Warning($"Callback error: {e.ToString()}");
671 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
678 efl_player_pos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), sec);
682 private static efl_player_pos_set_delegate efl_player_pos_set_static_delegate;
685 private delegate double efl_player_progress_get_delegate(System.IntPtr obj, System.IntPtr pd);
688 public delegate double efl_player_progress_get_api_delegate(System.IntPtr obj);
690 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");
692 private static double progress_get(System.IntPtr obj, System.IntPtr pd)
694 Eina.Log.Debug("function efl_player_progress_get was called");
695 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
698 double _ret_var = default(double);
701 _ret_var = ((IPlayer)ws.Target).GetProgress();
705 Eina.Log.Warning($"Callback error: {e.ToString()}");
706 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
714 return efl_player_progress_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
718 private static efl_player_progress_get_delegate efl_player_progress_get_static_delegate;
721 private delegate double efl_player_play_speed_get_delegate(System.IntPtr obj, System.IntPtr pd);
724 public delegate double efl_player_play_speed_get_api_delegate(System.IntPtr obj);
726 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");
728 private static double play_speed_get(System.IntPtr obj, System.IntPtr pd)
730 Eina.Log.Debug("function efl_player_play_speed_get was called");
731 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
734 double _ret_var = default(double);
737 _ret_var = ((IPlayer)ws.Target).GetPlaySpeed();
741 Eina.Log.Warning($"Callback error: {e.ToString()}");
742 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
750 return efl_player_play_speed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
754 private static efl_player_play_speed_get_delegate efl_player_play_speed_get_static_delegate;
757 private delegate void efl_player_play_speed_set_delegate(System.IntPtr obj, System.IntPtr pd, double speed);
760 public delegate void efl_player_play_speed_set_api_delegate(System.IntPtr obj, double speed);
762 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");
764 private static void play_speed_set(System.IntPtr obj, System.IntPtr pd, double speed)
766 Eina.Log.Debug("function efl_player_play_speed_set was called");
767 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
773 ((IPlayer)ws.Target).SetPlaySpeed(speed);
777 Eina.Log.Warning($"Callback error: {e.ToString()}");
778 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
785 efl_player_play_speed_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), speed);
789 private static efl_player_play_speed_set_delegate efl_player_play_speed_set_static_delegate;
792 private delegate double efl_player_volume_get_delegate(System.IntPtr obj, System.IntPtr pd);
795 public delegate double efl_player_volume_get_api_delegate(System.IntPtr obj);
797 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");
799 private static double volume_get(System.IntPtr obj, System.IntPtr pd)
801 Eina.Log.Debug("function efl_player_volume_get was called");
802 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
805 double _ret_var = default(double);
808 _ret_var = ((IPlayer)ws.Target).GetVolume();
812 Eina.Log.Warning($"Callback error: {e.ToString()}");
813 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
821 return efl_player_volume_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
825 private static efl_player_volume_get_delegate efl_player_volume_get_static_delegate;
828 private delegate void efl_player_volume_set_delegate(System.IntPtr obj, System.IntPtr pd, double volume);
831 public delegate void efl_player_volume_set_api_delegate(System.IntPtr obj, double volume);
833 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");
835 private static void volume_set(System.IntPtr obj, System.IntPtr pd, double volume)
837 Eina.Log.Debug("function efl_player_volume_set was called");
838 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
844 ((IPlayer)ws.Target).SetVolume(volume);
848 Eina.Log.Warning($"Callback error: {e.ToString()}");
849 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
856 efl_player_volume_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), volume);
860 private static efl_player_volume_set_delegate efl_player_volume_set_static_delegate;
862 [return: MarshalAs(UnmanagedType.U1)]
863 private delegate bool efl_player_mute_get_delegate(System.IntPtr obj, System.IntPtr pd);
865 [return: MarshalAs(UnmanagedType.U1)]
866 public delegate bool efl_player_mute_get_api_delegate(System.IntPtr obj);
868 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");
870 private static bool mute_get(System.IntPtr obj, System.IntPtr pd)
872 Eina.Log.Debug("function efl_player_mute_get was called");
873 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
876 bool _ret_var = default(bool);
879 _ret_var = ((IPlayer)ws.Target).GetMute();
883 Eina.Log.Warning($"Callback error: {e.ToString()}");
884 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
892 return efl_player_mute_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
896 private static efl_player_mute_get_delegate efl_player_mute_get_static_delegate;
899 private delegate void efl_player_mute_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool mute);
902 public delegate void efl_player_mute_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool mute);
904 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");
906 private static void mute_set(System.IntPtr obj, System.IntPtr pd, bool mute)
908 Eina.Log.Debug("function efl_player_mute_set was called");
909 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
915 ((IPlayer)ws.Target).SetMute(mute);
919 Eina.Log.Warning($"Callback error: {e.ToString()}");
920 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
927 efl_player_mute_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), mute);
931 private static efl_player_mute_set_delegate efl_player_mute_set_static_delegate;
934 private delegate double efl_player_length_get_delegate(System.IntPtr obj, System.IntPtr pd);
937 public delegate double efl_player_length_get_api_delegate(System.IntPtr obj);
939 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");
941 private static double length_get(System.IntPtr obj, System.IntPtr pd)
943 Eina.Log.Debug("function efl_player_length_get was called");
944 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
947 double _ret_var = default(double);
950 _ret_var = ((IPlayer)ws.Target).GetLength();
954 Eina.Log.Warning($"Callback error: {e.ToString()}");
955 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
963 return efl_player_length_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
967 private static efl_player_length_get_delegate efl_player_length_get_static_delegate;
969 [return: MarshalAs(UnmanagedType.U1)]
970 private delegate bool efl_player_seekable_get_delegate(System.IntPtr obj, System.IntPtr pd);
972 [return: MarshalAs(UnmanagedType.U1)]
973 public delegate bool efl_player_seekable_get_api_delegate(System.IntPtr obj);
975 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");
977 private static bool seekable_get(System.IntPtr obj, System.IntPtr pd)
979 Eina.Log.Debug("function efl_player_seekable_get was called");
980 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
983 bool _ret_var = default(bool);
986 _ret_var = ((IPlayer)ws.Target).GetSeekable();
990 Eina.Log.Warning($"Callback error: {e.ToString()}");
991 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
999 return efl_player_seekable_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1003 private static efl_player_seekable_get_delegate efl_player_seekable_get_static_delegate;
1006 private delegate void efl_player_start_delegate(System.IntPtr obj, System.IntPtr pd);
1009 public delegate void efl_player_start_api_delegate(System.IntPtr obj);
1011 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");
1013 private static void start(System.IntPtr obj, System.IntPtr pd)
1015 Eina.Log.Debug("function efl_player_start was called");
1016 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1022 ((IPlayer)ws.Target).Start();
1026 Eina.Log.Warning($"Callback error: {e.ToString()}");
1027 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1034 efl_player_start_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1038 private static efl_player_start_delegate efl_player_start_static_delegate;
1041 private delegate void efl_player_stop_delegate(System.IntPtr obj, System.IntPtr pd);
1044 public delegate void efl_player_stop_api_delegate(System.IntPtr obj);
1046 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");
1048 private static void stop(System.IntPtr obj, System.IntPtr pd)
1050 Eina.Log.Debug("function efl_player_stop was called");
1051 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1057 ((IPlayer)ws.Target).Stop();
1061 Eina.Log.Warning($"Callback error: {e.ToString()}");
1062 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1069 efl_player_stop_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1073 private static efl_player_stop_delegate efl_player_stop_static_delegate;
1075 #pragma warning restore CA1707, CS1591, SA1300, SA1600