Example #1
0
        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;
        }
Example #2
0
 internal static extern IntPtr libvlc_media_subitems(IntPtr p_media, ref libvlc_exception_t p_exception);
Example #3
0
 internal static extern String libvlc_video_get_aspect_ratio(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #4
0
 internal static extern bool libvlc_get_fullscreen(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #5
0
 internal static extern void libvlc_toggle_fullscreen(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #6
0
 internal static extern bool libvlc_media_player_is_seekable(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #7
0
 internal static extern float libvlc_media_player_get_fps(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #8
0
 internal static extern void libvlc_media_player_set_rate(IntPtr p_media_player, float rate, ref libvlc_exception_t p_exception);
Example #9
0
 internal static extern void libvlc_media_player_set_xwindow(IntPtr p_media_player, UInt32 handle, ref libvlc_exception_t p_exception);
Example #10
0
 internal static extern void libvlc_media_player_stop(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #11
0
 internal static extern IntPtr libvlc_media_player_event_manager(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #12
0
 internal static extern IntPtr libvlc_media_player_new_from_media(IntPtr p_media, ref libvlc_exception_t p_exception);
Example #13
0
 internal static extern IntPtr libvlc_media_player_new(IntPtr p_instance, ref libvlc_exception_t p_exception);
Example #14
0
 internal static extern bool libvlc_media_is_preparsed(IntPtr p_media, ref libvlc_exception_t p_exception);
Example #15
0
 internal static extern long libvlc_media_get_duration(IntPtr p_media, ref libvlc_exception_t p_exception);
Example #16
0
 internal static extern int libvlc_media_player_get_title_count(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #17
0
 internal static extern void libvlc_media_player_next_chapter(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #18
0
 internal static extern UInt32 libvlc_media_player_get_xwindow(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #19
0
 internal static extern VlcState libvlc_media_player_get_state(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #20
0
 internal static extern void libvlc_media_player_set_hwnd(IntPtr p_media_player, IntPtr handle, ref libvlc_exception_t p_exception);
Example #21
0
 internal static extern bool libvlc_media_player_has_vout(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #22
0
 internal static extern IntPtr libvlc_media_player_get_hwnd(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #23
0
 internal static extern bool libvlc_media_player_can_pause(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #24
0
 internal static extern long libvlc_media_player_get_time(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #25
0
 internal static extern void libvlc_set_fullscreen(IntPtr p_media_player, bool b_fullscreen, ref libvlc_exception_t p_exception);
Example #26
0
 internal static extern void libvlc_media_player_set_position(IntPtr p_media_player, float position, ref libvlc_exception_t p_exception);
Example #27
0
 internal static extern int libvlc_video_get_width(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #28
0
 internal static extern bool libvlc_media_player_will_play(IntPtr p_media_player, ref libvlc_exception_t p_exception);
Example #29
0
 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);
Example #30
0
 internal static extern void libvlc_media_player_set_title(IntPtr p_media_player, int title, ref libvlc_exception_t p_exception);