private void Initalize(string vlcDirectory, string[] args) { RootPath = vlcDirectory; //save the original EnviornmentDirectory. string originalDir = Environment.CurrentDirectory; //Set the directory to load the COM object libvlc.dll Environment.CurrentDirectory = vlcDirectory; p_exception = new libvlc_exception_t(); p_exception.Initalize(); p_instance = InteropMethods.libvlc_new(args.Length, args, ref p_exception); p_exception.CheckException(); Environment.CurrentDirectory = originalDir; }
internal static extern IntPtr libvlc_media_subitems(IntPtr p_media, ref libvlc_exception_t p_exception);
internal static extern String libvlc_video_get_aspect_ratio(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern bool libvlc_get_fullscreen(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern void libvlc_toggle_fullscreen(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern bool libvlc_media_player_is_seekable(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern float libvlc_media_player_get_fps(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern void libvlc_media_player_set_rate(IntPtr p_media_player, float rate, ref libvlc_exception_t p_exception);
internal static extern void libvlc_media_player_set_xwindow(IntPtr p_media_player, UInt32 handle, ref libvlc_exception_t p_exception);
internal static extern void libvlc_media_player_stop(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern IntPtr libvlc_media_player_event_manager(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern IntPtr libvlc_media_player_new_from_media(IntPtr p_media, ref libvlc_exception_t p_exception);
internal static extern IntPtr libvlc_media_player_new(IntPtr p_instance, ref libvlc_exception_t p_exception);
internal static extern bool libvlc_media_is_preparsed(IntPtr p_media, ref libvlc_exception_t p_exception);
internal static extern long libvlc_media_get_duration(IntPtr p_media, ref libvlc_exception_t p_exception);
internal static extern int libvlc_media_player_get_title_count(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern void libvlc_media_player_next_chapter(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern UInt32 libvlc_media_player_get_xwindow(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern VlcState libvlc_media_player_get_state(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern void libvlc_media_player_set_hwnd(IntPtr p_media_player, IntPtr handle, ref libvlc_exception_t p_exception);
internal static extern bool libvlc_media_player_has_vout(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern IntPtr libvlc_media_player_get_hwnd(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern bool libvlc_media_player_can_pause(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern long libvlc_media_player_get_time(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern void libvlc_set_fullscreen(IntPtr p_media_player, bool b_fullscreen, ref libvlc_exception_t p_exception);
internal static extern void libvlc_media_player_set_position(IntPtr p_media_player, float position, ref libvlc_exception_t p_exception);
internal static extern int libvlc_video_get_width(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern bool libvlc_media_player_will_play(IntPtr p_media_player, ref libvlc_exception_t p_exception);
internal static extern void libvlc_video_set_aspect_ratio(IntPtr p_media_player, [MarshalAs(UnmanagedType.LPStr)] string psz_geometry, ref libvlc_exception_t p_exception);
internal static extern void libvlc_media_player_set_title(IntPtr p_media_player, int title, ref libvlc_exception_t p_exception);