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