Commit 7832f6ec authored by Martin Finkel's avatar Martin Finkel

more renaming

parent 7aa5203c
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
namespace VideoLAN.LibVLC.Structures
{
/// <summary>
/// <para>Description for audio output. It contains</para>
/// <para>name, description and pointer to next record.</para>
/// </summary>
public unsafe partial class AudioOutputDescription : IDisposable
{
[StructLayout(LayoutKind.Sequential)]
public partial struct Internal
{
internal IntPtr psz_name;
internal IntPtr psz_description;
internal IntPtr p_next;
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = CallingConvention.Cdecl,
EntryPoint = "??0libvlc_audio_output_t@@QEAA@AEBU0@@Z")]
internal static extern global::System.IntPtr cctor(global::System.IntPtr instance, global::System.IntPtr _0);
}
public global::System.IntPtr __Instance { get; protected set; }
protected int __PointerAdjustment;
internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, AudioOutputDescription> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, AudioOutputDescription>();
protected void*[] __OriginalVTables;
protected bool __ownsNativeInstance;
internal static AudioOutputDescription __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{
return new AudioOutputDescription(native.ToPointer(), skipVTables);
}
internal static AudioOutputDescription __CreateInstance(AudioOutputDescription.Internal native, bool skipVTables = false)
{
return new AudioOutputDescription(native, skipVTables);
}
private static void* __CopyValue(AudioOutputDescription.Internal native)
{
var ret = Marshal.AllocHGlobal(sizeof(AudioOutputDescription.Internal));
*(AudioOutputDescription.Internal*)ret = native;
return ret.ToPointer();
}
private AudioOutputDescription(AudioOutputDescription.Internal native, bool skipVTables = false)
: this(__CopyValue(native), skipVTables)
{
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
protected AudioOutputDescription(void* native, bool skipVTables = false)
{
if (native == null)
return;
__Instance = new global::System.IntPtr(native);
}
public AudioOutputDescription()
{
__Instance = Marshal.AllocHGlobal(sizeof(AudioOutputDescription.Internal));
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
public AudioOutputDescription(AudioOutputDescription _0)
{
__Instance = Marshal.AllocHGlobal(sizeof(AudioOutputDescription.Internal));
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
*((AudioOutputDescription.Internal*)__Instance) = *((AudioOutputDescription.Internal*)_0.__Instance);
}
public void Dispose()
{
Dispose(disposing: true);
}
public virtual void Dispose(bool disposing)
{
if (__Instance == IntPtr.Zero)
return;
AudioOutputDescription __dummy;
NativeToManagedMap.TryRemove(__Instance, out __dummy);
if (__ownsNativeInstance)
Marshal.FreeHGlobal(__Instance);
__Instance = IntPtr.Zero;
}
//public string Name => Marshal.PtrToStringAnsi(((Native *) NativeReference)->psz_name);
public string Name => (string)Utf8StringMarshaler.GetInstance().MarshalNativeToManaged(((Internal*)__Instance)->psz_name);
public string Description => (string)Utf8StringMarshaler.GetInstance().MarshalNativeToManaged(((Internal*)__Instance)->psz_description);
public AudioOutputDescription Next
{
get
{
AudioOutputDescription __result0;
if (((AudioOutputDescription.Internal*)__Instance)->p_next == IntPtr.Zero) __result0 = null;
else if (AudioOutputDescription.NativeToManagedMap.ContainsKey(((AudioOutputDescription.Internal*)__Instance)->p_next))
__result0 = (AudioOutputDescription)AudioOutputDescription.NativeToManagedMap[((AudioOutputDescription.Internal*)__Instance)->p_next];
else __result0 = AudioOutputDescription.__CreateInstance(((AudioOutputDescription.Internal*)__Instance)->p_next);
return __result0;
}
set
{
((AudioOutputDescription.Internal*)__Instance)->p_next = ReferenceEquals(value, null) ? global::System.IntPtr.Zero : value.__Instance;
}
}
}
}
using System;
using System.Runtime.InteropServices;
namespace VideoLAN.LibVLC.Structures
{
/// <summary>Description for audio output device.</summary>
public unsafe class AudioOutputDevice : IDisposable
{
[StructLayout(LayoutKind.Explicit, Size = 24)]
public partial struct Internal
{
[FieldOffset(0)]
internal IntPtr next;
[FieldOffset(8)]
internal IntPtr device;
[FieldOffset(16)]
internal IntPtr description;
}
public IntPtr NativeReference { get; protected set; }
protected int __PointerAdjustment;
internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, AudioOutputDevice> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, AudioOutputDevice>();
protected void*[] __OriginalVTables;
protected bool __ownsNativeInstance;
internal static AudioOutputDevice __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{
return new AudioOutputDevice(native.ToPointer(), skipVTables);
}
internal static AudioOutputDevice __CreateInstance(AudioOutputDevice.Internal native, bool skipVTables = false)
{
return new AudioOutputDevice(native, skipVTables);
}
private static void* __CopyValue(AudioOutputDevice.Internal native)
{
var ret = Marshal.AllocHGlobal(sizeof(AudioOutputDevice.Internal));
*(AudioOutputDevice.Internal*)ret = native;
return ret.ToPointer();
}
private AudioOutputDevice(AudioOutputDevice.Internal native, bool skipVTables = false)
: this(__CopyValue(native), skipVTables)
{
__ownsNativeInstance = true;
NativeToManagedMap[NativeReference] = this;
}
protected AudioOutputDevice(void* native, bool skipVTables = false)
{
if (native == null)
return;
NativeReference = new global::System.IntPtr(native);
}
public AudioOutputDevice()
{
NativeReference = Marshal.AllocHGlobal(sizeof(AudioOutputDevice.Internal));
__ownsNativeInstance = true;
NativeToManagedMap[NativeReference] = this;
}
public AudioOutputDevice(AudioOutputDevice _0)
{
NativeReference = Marshal.AllocHGlobal(sizeof(AudioOutputDevice.Internal));
__ownsNativeInstance = true;
NativeToManagedMap[NativeReference] = this;
*((AudioOutputDevice.Internal*)NativeReference) = *((AudioOutputDevice.Internal*)_0.NativeReference);
}
public void Dispose()
{
Dispose(disposing: true);
}
public virtual void Dispose(bool disposing)
{
if (NativeReference == IntPtr.Zero)
return;
AudioOutputDevice __dummy;
NativeToManagedMap.TryRemove(NativeReference, out __dummy);
if (__ownsNativeInstance)
Marshal.FreeHGlobal(NativeReference);
NativeReference = IntPtr.Zero;
}
public AudioOutputDevice Next
{
get
{
AudioOutputDevice __result0;
if (((AudioOutputDevice.Internal*)NativeReference)->next == IntPtr.Zero) __result0 = null;
else if (AudioOutputDevice.NativeToManagedMap.ContainsKey(((AudioOutputDevice.Internal*)NativeReference)->next))
__result0 = (AudioOutputDevice)AudioOutputDevice.NativeToManagedMap[((AudioOutputDevice.Internal*)NativeReference)->next];
else __result0 = AudioOutputDevice.__CreateInstance(((AudioOutputDevice.Internal*)NativeReference)->next);
return __result0;
}
set
{
((AudioOutputDevice.Internal*)NativeReference)->next = ReferenceEquals(value, null) ? global::System.IntPtr.Zero : value.NativeReference;
}
}
public string Device => (string)Utf8StringMarshaler.GetInstance().MarshalNativeToManaged(((Internal*)NativeReference)->device);
public string Description => (string)Utf8StringMarshaler.GetInstance().MarshalNativeToManaged(((Internal*)NativeReference)->description);
}
}
......@@ -1584,6 +1584,15 @@ namespace VideoLAN.LibVLC
/// <returns></returns>
public bool UpdateViewpoint(VideoViewpoint viewpoint, bool absolute) =>
Native.LibVLCVideoUpdateViewpoint(NativeReference, viewpoint, absolute) == 0;
#region Enums
#endregion
#region Callbacks
/// <summary>
/// <para>A LibVLC media player plays one media (usually in a custom drawable).</para>
......@@ -1767,5 +1776,160 @@ namespace VideoLAN.LibVLC
/// <param name="mute">muted flag</param>
[SuppressUnmanagedCodeSecurity, UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public delegate void LibVLCVolumeCb(IntPtr data, float volume, [MarshalAs(UnmanagedType.I1)] bool mute);
#endregion
}
/// <summary>Description for titles</summary>
public enum Title
{
Menu = 1,
Interactive = 2
}
/// <summary>Marq options definition</summary>
public enum VideoMarqueeOption
{
Enable = 0,
Text = 1,
/// <summary>string argument</summary>
Color = 2,
/// <summary>string argument</summary>
Opacity = 3,
/// <summary>string argument</summary>
Position = 4,
/// <summary>string argument</summary>
Refresh = 5,
/// <summary>string argument</summary>
Size = 6,
/// <summary>string argument</summary>
Timeout = 7,
/// <summary>string argument</summary>
X = 8,
/// <summary>string argument</summary>
Y = 9
}
/// <summary>Navigation mode</summary>
public enum NavigationMode
{
Activate = 0,
Up = 1,
Down = 2,
Left = 3,
Right = 4,
Popup = 5
}
/// <summary>Enumeration of values used to set position (e.g. of video title).</summary>
public enum Position
{
Disable = -1,
Center = 0,
Left = 1,
Right = 2,
Top = 3,
TopLeft = 4,
TopRight = 5,
Bottom = 6,
BottomLeft = 7,
BottomRight = 8
}
/// <summary>
/// <para>Enumeration of teletext keys than can be passed via</para>
/// <para>libvlc_video_set_teletext()</para>
/// </summary>
public enum TeletextKey
{
Red = 7471104,
Green = 6750208,
Yellow = 7929856,
Blue = 6422528,
Index = 6881280
}
/// <summary>option values for libvlc_video_{get,set}_logo_{int,string}</summary>
public enum VideoLogoOption
{
Enable = 0,
/// <summary>string argument, &quot;file,d,t;file,d,t;...&quot;</summary>
File = 1,
X = 2,
Y = 3,
Delay = 4,
Repeat = 5,
Opacity = 6,
Position = 7
}
/// <summary>option values for libvlc_video_{get,set}_adjust_{int,float,bool}</summary>
public enum VideoAdjustOption
{
Enable = 0,
Contrast = 1,
Brightness = 2,
Hue = 3,
Saturation = 4,
Gamma = 5
}
/// <summary>Audio device types</summary>
public enum AudioOutputDeviceType
{
DeviceError = -1,
DeviceMono = 1,
DeviceStereo = 2,
Device2F2R = 4,
Device3F2R = 5,
Device5_1 = 6,
Device6_1 = 7,
Device7_1 = 8,
DeviceSPDIF = 10
}
/// <summary>Audio channels</summary>
public enum AudioOutputChannel
{
Error = -1,
Stereo = 1,
RStereo = 2,
Left = 3,
Right = 4,
Dolbys = 5
}
/// <summary>Media player roles.</summary>
/// <remarks>
/// <para>LibVLC 3.0.0 and later.</para>
/// <para>See</para>
/// </remarks>
public enum MediaPlayerRole
{
/// <summary>Don't use a media player role</summary>
None = 0,
/// <summary>Music (or radio) playback</summary>
Music = 1,
/// <summary>Video playback</summary>
Video = 2,
/// <summary>Speech, real-time communication</summary>
Communication = 3,
/// <summary>Video game</summary>
Game = 4,
/// <summary>User interaction feedback</summary>
LiblvcRoleNotification = 5,
/// <summary>Embedded animation (e.g. in web page)</summary>
Animation = 6,
/// <summary>Audio editting/production</summary>
Production = 7,
/// <summary>Accessibility</summary>
Accessibility = 8,
Test = 9
}
//TODO: remove onced branch merged.
public class Equalizer
{
public IntPtr NativeReference;
}
}
// ----------------------------------------------------------------------------
// <auto-generated>
// This is autogenerated code by CppSharp.
// Do not edit this file or all your changes will be lost after re-generation.
// </auto-generated>
// ----------------------------------------------------------------------------
using System;
using System.Runtime.InteropServices;
using System.Security;
namespace VideoLAN.LibVLC
{
/// <summary>Defines playback modes for playlist.</summary>
public enum PlaybackMode
{
Default = 0,
Loop = 1,
Repeat = 2
}
/// <summary>The LibVLC media list player plays a</summary>
/// <remarks>
/// <para>in a certain order.</para>
/// <para>This is required to especially support playlist files.</para>
/// <para>The normal</para>
/// <para>single media, and does not handle playlist files properly.</para>
/// <para>@{</para>
/// <para></para>
/// <para>LibVLC media list player external API</para>
/// </remarks>
public unsafe partial class LibvlcMediaListPlayerT
{
[StructLayout(LayoutKind.Explicit, Size = 0)]
public partial struct __Internal
{
}
public global::System.IntPtr __Instance { get; protected set; }
protected int __PointerAdjustment;
internal static readonly global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.LibvlcMediaListPlayerT> NativeToManagedMap = new global::System.Collections.Concurrent.ConcurrentDictionary<IntPtr, global::VideoLAN.LibVLC.LibvlcMediaListPlayerT>();
protected void*[] __OriginalVTables;
protected bool __ownsNativeInstance;
internal static global::VideoLAN.LibVLC.LibvlcMediaListPlayerT __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
{
return new global::VideoLAN.LibVLC.LibvlcMediaListPlayerT(native.ToPointer(), skipVTables);
}
internal static global::VideoLAN.LibVLC.LibvlcMediaListPlayerT __CreateInstance(global::VideoLAN.LibVLC.LibvlcMediaListPlayerT.__Internal native, bool skipVTables = false)
{
return new global::VideoLAN.LibVLC.LibvlcMediaListPlayerT(native, skipVTables);
}
private static void* __CopyValue(global::VideoLAN.LibVLC.LibvlcMediaListPlayerT.__Internal native)
{
var ret = Marshal.AllocHGlobal(sizeof(global::VideoLAN.LibVLC.LibvlcMediaListPlayerT.__Internal));
*(global::VideoLAN.LibVLC.LibvlcMediaListPlayerT.__Internal*) ret = native;
return ret.ToPointer();
}
private LibvlcMediaListPlayerT(global::VideoLAN.LibVLC.LibvlcMediaListPlayerT.__Internal native, bool skipVTables = false)
: this(__CopyValue(native), skipVTables)
{
__ownsNativeInstance = true;
NativeToManagedMap[__Instance] = this;
}
protected LibvlcMediaListPlayerT(void* native, bool skipVTables = false)
{
if (native == null)
return;
__Instance = new global::System.IntPtr(native);
}
}
public unsafe partial class libvlc_media_list_player
{
public partial struct __Internal
{
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_new")]
internal static extern global::System.IntPtr LibvlcMediaListPlayerNew(global::System.IntPtr p_instance);
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_release")]
internal static extern void LibvlcMediaListPlayerRelease(global::System.IntPtr p_mlp);
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_retain")]
internal static extern void LibvlcMediaListPlayerRetain(global::System.IntPtr p_mlp);
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_event_manager")]
internal static extern global::System.IntPtr LibvlcMediaListPlayerEventManager(global::System.IntPtr p_mlp);
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_set_media_player")]
internal static extern void LibvlcMediaListPlayerSetMediaPlayer(global::System.IntPtr p_mlp, global::System.IntPtr p_mi);
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_get_media_player")]
internal static extern global::System.IntPtr LibvlcMediaListPlayerGetMediaPlayer(global::System.IntPtr p_mlp);
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_set_media_list")]
internal static extern void LibvlcMediaListPlayerSetMediaList(global::System.IntPtr p_mlp, global::System.IntPtr p_mlist);
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_play")]
internal static extern void LibvlcMediaListPlayerPlay(global::System.IntPtr p_mlp);
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_pause")]
internal static extern void LibvlcMediaListPlayerPause(global::System.IntPtr p_mlp);
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_is_playing")]
internal static extern int LibvlcMediaListPlayerIsPlaying(global::System.IntPtr p_mlp);
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_get_state")]
internal static extern global::VideoLAN.LibVLC.VLCState LibvlcMediaListPlayerGetState(global::System.IntPtr p_mlp);
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_play_item_at_index")]
internal static extern int LibvlcMediaListPlayerPlayItemAtIndex(global::System.IntPtr p_mlp, int i_index);
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_play_item")]
internal static extern int LibvlcMediaListPlayerPlayItem(global::System.IntPtr p_mlp, global::System.IntPtr p_md);
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_stop")]
internal static extern void LibvlcMediaListPlayerStop(global::System.IntPtr p_mlp);
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_next")]
internal static extern int LibvlcMediaListPlayerNext(global::System.IntPtr p_mlp);
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_previous")]
internal static extern int LibvlcMediaListPlayerPrevious(global::System.IntPtr p_mlp);
[SuppressUnmanagedCodeSecurity]
[DllImport("libvlc", CallingConvention = global::System.Runtime.InteropServices.CallingConvention.Cdecl,
EntryPoint="libvlc_media_list_player_set_playback_mode")]
internal static extern void LibvlcMediaListPlayerSetPlaybackMode(global::System.IntPtr p_mlp, global::VideoLAN.LibVLC.PlaybackMode e_mode);
}
/// <summary>Create new media_list_player.</summary>
/// <param name="p_instance">libvlc instance</param>
/// <returns>media list player instance or NULL on error</returns>
public static global::VideoLAN.LibVLC.LibvlcMediaListPlayerT LibvlcMediaListPlayerNew(global::VideoLAN.LibVLC.Instance p_instance)
{
var __arg0 = ReferenceEquals(p_instance, null) ? global::System.IntPtr.Zero : p_instance.NativeReference;
var __ret = __Internal.LibvlcMediaListPlayerNew(__arg0);
global::VideoLAN.LibVLC.LibvlcMediaListPlayerT __result0;
if (__ret == IntPtr.Zero) __result0 = null;
else if (global::VideoLAN.LibVLC.LibvlcMediaListPlayerT.NativeToManagedMap.ContainsKey(__ret))
__result0 = (global::VideoLAN.LibVLC.LibvlcMediaListPlayerT) global::VideoLAN.LibVLC.LibvlcMediaListPlayerT.NativeToManagedMap[__ret];
else __result0 = global::VideoLAN.LibVLC.LibvlcMediaListPlayerT.__CreateInstance(__ret);
return __result0;
}
/// <summary>
/// <para>Release a media_list_player after use</para>
/// <para>Decrement the reference count of a media player object. If the</para>
/// <para>reference count is 0, then libvlc_media_list_player_release() will</para>
/// <para>release the media player object. If the media player object</para>
/// <para>has been released, then it should not be used again.</para>
/// </summary>
/// <param name="p_mlp">media list player instance</param>
public static void LibvlcMediaListPlayerRelease(global::VideoLAN.LibVLC.LibvlcMediaListPlayerT p_mlp)
{
var __arg0 = ReferenceEquals(p_mlp, null) ? global::System.IntPtr.Zero : p_mlp.__Instance;
__Internal.LibvlcMediaListPlayerRelease(__arg0);
}
/// <summary>
/// <para>Retain a reference to a media player list object. Use</para>
/// <para>libvlc_media_list_player_release() to decrement reference count.</para>
/// </summary>
/// <param name="p_mlp">media player list object</param>
public static void LibvlcMediaListPlayerRetain(global::VideoLAN.LibVLC.LibvlcMediaListPlayerT p_mlp)
{
var __arg0 = ReferenceEquals(p_mlp, null) ? global::System.IntPtr.Zero : p_mlp.__Instance;
__Internal.LibvlcMediaListPlayerRetain(__arg0);
}
/// <summary>Return the event manager of this media_list_player.</summary>
/// <param name="p_mlp">media list player instance</param>
/// <returns>the event manager</returns>
//public static global::VideoLAN.LibVLC.EventManager LibvlcMediaListPlayerEventManager(global::VideoLAN.LibVLC.LibvlcMediaListPlayerT p_mlp)
//{
// var __arg0 = ReferenceEquals(p_mlp, null) ? global::System.IntPtr.Zero : p_mlp.NativeReference;
// var __ret = __Internal.LibvlcMediaListPlayerEventManager(__arg0);
// global::VideoLAN.LibVLC.EventManager __result0;
// if (__ret == IntPtr.Zero) __result0 = null;
// else if (global::VideoLAN.LibVLC.EventManager.NativeToManagedMap.ContainsKey(__ret))
// __result0 = (global::VideoLAN.LibVLC.EventManager) global::VideoLAN.LibVLC.EventManager.NativeToManagedMap[__ret];
// else __result0 = global::VideoLAN.LibVLC.EventManager.__CreateInstance(__ret);
// return __result0;
//}
/// <summary>Replace media player in media_list_player with this instance.</summary>