示例#1
0
        public void SetRenderWindow(int wndHandle)
        {
            try
            {
                if (libvlc_instance_ != IntPtr.Zero && wndHandle != 0)
                {
                    VlcPlayerListAPI.libvlc_media_list_player_set_media_player(libvlc_media_list_player_, libvlc_media_player_);
                    VlcPlayerListAPI.libvlc_media_player_set_hwnd(libvlc_media_player_, wndHandle);
                }
            }

            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }