Example #1
0
        private void OnVlcControlNeedsLibDirectory(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly  = Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            if (currentDirectory == null)
            {
                return;
            }
            if (AssemblyName.GetAssemblyName(currentAssembly.Location).ProcessorArchitecture == ProcessorArchitecture.X86)
            {
                e.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, @"lib\x86\"));
            }
            else
            {
                e.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, @"lib\x64\"));
            }
            if (!e.VlcLibDirectory.Exists)
            {
                //提示 log
                //var folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
                //folderBrowserDialog.Description = "Select Vlc libraries folder.";
                //folderBrowserDialog.RootFolder = Environment.SpecialFolder.Desktop;
                //folderBrowserDialog.ShowNewFolderButton = true;
                //if (folderBrowserDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                //{
                //    e.VlcLibDirectory = new DirectoryInfo(folderBrowserDialog.SelectedPath);
                //}
                Log4NetHelper.ErrorFormat("无效的播放组件路径.");
            }
        }
Example #2
0
        private void vlcControl7_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            Assembly entryAssembly   = Assembly.GetEntryAssembly();
            string   binaryDirectory = new FileInfo(entryAssembly.Location).DirectoryName;
            // Default installation path of VideoLAN.LibVLC.Windows
            string vlcLibDirectory = Path.Combine(binaryDirectory, "libvlc", IntPtr.Size == 4 ? "win-x86" : "win-x64");

            if (!Directory.Exists(vlcLibDirectory))
            {
                if (IntPtr.Size == 4)
                {
                    vlcLibDirectory = @"C:\Program Files (x86)\VideoLAN\VLC";
                }
                else
                {
                    vlcLibDirectory = @"C:\Program Files\VideoLAN\VLC";
                }
            }
            if (!Directory.Exists(vlcLibDirectory))
            {
                timer1.Enabled = false;
                MessageBox.Show(this, "vlc / libvlc not found!", "SatIPlayer");
                Environment.Exit(0);
            }
            e.VlcLibDirectory = new DirectoryInfo(vlcLibDirectory);
        }
Example #3
0
        private void vlcControl_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly  = Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            if (currentDirectory == null)
            {
                return;
            }
            if (IntPtr.Size == 4)
            {
                e.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, @"..\..\lib\x86\"));
            }
            else
            {
                e.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, @"..\..\lib\x64\"));
            }

            if (!e.VlcLibDirectory.Exists)
            {
                var folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
                folderBrowserDialog.Description         = "Select Vlc libraries folder.";
                folderBrowserDialog.RootFolder          = Environment.SpecialFolder.Desktop;
                folderBrowserDialog.ShowNewFolderButton = true;
                if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
                {
                    e.VlcLibDirectory = new DirectoryInfo(folderBrowserDialog.SelectedPath);
                }
            }
        }
Example #4
0
        void VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            if (LibVlcPath != null)
            {
                e.VlcLibDirectory = new DirectoryInfo(LibVlcPath);
                vlc_ok            = true;
                return;
            }

            // set the vlc path to current direction
            var currentAssembly  = System.Reflection.Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            if (currentDirectory == null)
            {
                throw new Exception("Can't get Current Direction.");
            }

            // test is libvlc.dll is exist
            if (!File.Exists(Path.Combine(currentDirectory, "libvlc.dll")))
            {
                throw new FileNotFoundException("LibVlc not found.");
            }

            // lib vlc is ok
            vlc_ok = true;

            e.VlcLibDirectory = new DirectoryInfo(currentDirectory);
        }
 private void VideoPlayer_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
 {
     if (IntPtr.Size == 4)
     {
         e.VlcLibDirectory = new DirectoryInfo(@"C:\Program Files\VideoLAN\VLC");                 //The folder where VLC is installed
     }
 }
Example #6
0
        private void myVlcControl_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var isVlcLibPathSet = !string.IsNullOrWhiteSpace(Settings.Instance.VlcLibPath);

            if (isVlcLibPathSet)
            {
                e.VlcLibDirectory = new DirectoryInfo(Settings.Instance.VlcLibPath);
            }
            if (!isVlcLibPathSet || !e.VlcLibDirectory.Exists)
            {
                var folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
                folderBrowserDialog.Description         = "Select Vlc libraries folder.";
                folderBrowserDialog.RootFolder          = Environment.SpecialFolder.Desktop;
                folderBrowserDialog.ShowNewFolderButton = true;
                if (folderBrowserDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    e.VlcLibDirectory            = new DirectoryInfo(folderBrowserDialog.SelectedPath);
                    Settings.Instance.VlcLibPath = folderBrowserDialog.SelectedPath;
                    Settings.Instance.SaveSettings();
                }
                else
                {
                    MessageBox.Show($"memoQ video preview cannot work without Vlc libraries.{Environment.NewLine}{Environment.NewLine}Press \"OK\" to quit.",
                                    "Vlc libraries needed", MessageBoxButton.OK, MessageBoxImage.Error);

                    Environment.Exit(ExitCodes.VlcLibrariesRequired);
                }
            }
        }
Example #7
0
        private void vlcControl1_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly  = Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            e.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, "libvlc", IntPtr.Size == 4 ? "win-x86" : "win-x64"));
        }
Example #8
0
        private void vlcControl1_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            //LibVlcAPI.libvlc_set_fullscreen(libvlc_media_player_, istrue ? 1 : 0);


            var currentAssembly  = Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            if (currentDirectory == null)
            {
                return;
            }
            if (IntPtr.Size == 4)
            {
                e.VlcLibDirectory = new DirectoryInfo(Path.GetFullPath(@".\libvlc\win-x86\"));
            }
            else
            {
                e.VlcLibDirectory = new DirectoryInfo(Path.GetFullPath(@".\libvlc\win-x64\"));
            }

            if (!e.VlcLibDirectory.Exists)
            {
                var folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
                folderBrowserDialog.Description         = "Select Vlc libraries folder.";
                folderBrowserDialog.RootFolder          = Environment.SpecialFolder.Desktop;
                folderBrowserDialog.ShowNewFolderButton = true;
                if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
                {
                    e.VlcLibDirectory = new DirectoryInfo(folderBrowserDialog.SelectedPath);
                }
            }
        }
Example #9
0
 private void vlcControl1_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
 {
     // !!!必須設定!!!
     // 「事前準備.Vlcライブラリフォルダ」で
     // 出力設定したVlcライブラリフォルダ指定
     e.VlcLibDirectory = new DirectoryInfo(@".\MyResource\Lib\vlc-2.2.1");
 }
Example #10
0
        private void vlcControl1_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly  = Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            if (currentDirectory == null)
            {
                return;
            }
            if (AssemblyName.GetAssemblyName(currentAssembly.Location).ProcessorArchitecture == ProcessorArchitecture.X86)
            {
                e.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, @"Y:\-=GOOGLE CODE PROJEKTAI=-\GIT\iPlay\packages\Meta.Vlc.Lib.16.05.01\content\LibVlc"));
            }
            else
            {
                e.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, @"Y:\-=GOOGLE CODE PROJEKTAI=-\GIT\iPlay\packages\Meta.Vlc.Lib.16.05.01\content\LibVlc"));
            }

            if (!e.VlcLibDirectory.Exists)
            {
                var folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
                folderBrowserDialog.Description         = "Select Vlc libraries folder.";
                folderBrowserDialog.RootFolder          = Environment.SpecialFolder.Desktop;
                folderBrowserDialog.ShowNewFolderButton = true;
                if (folderBrowserDialog.ShowDialog() == DialogResult.OK)
                {
                    e.VlcLibDirectory = new DirectoryInfo(folderBrowserDialog.SelectedPath);
                }
            }
        }
Example #11
0
        private void MediaPlayer_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly  = Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            if (currentDirectory == null)
            {
                return;
            }
            if (AssemblyName.GetAssemblyName(currentAssembly.Location).ProcessorArchitecture == ProcessorArchitecture.X86)
            {
                e.VlcLibDirectory = new DirectoryInfo(System.IO.Path.Combine(currentDirectory, @"vlc\x86\"));
            }
            //e.VlcLibDirectory = new DirectoryInfo(currentDirectory);
            else
            {
                e.VlcLibDirectory = new DirectoryInfo(System.IO.Path.Combine(currentDirectory, @"vlc\x64\"));
            }
            //e.VlcLibDirectory = new DirectoryInfo(currentDirectory);

            if (!e.VlcLibDirectory.Exists)
            {
                var folderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
                folderBrowserDialog.Description         = "Select Vlc libraries folder.";
                folderBrowserDialog.RootFolder          = Environment.SpecialFolder.Desktop;
                folderBrowserDialog.ShowNewFolderButton = true;
                if (folderBrowserDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    e.VlcLibDirectory = new DirectoryInfo(folderBrowserDialog.SelectedPath);
                }
            }
        }
Example #12
0
        /// <summary>
        /// When the Vlc control needs to find the location of the libvlc.dll.
        /// You could have set the VlcLibDirectory in the designer, but for this sample, we are in AnyCPU mode, and we don't know the process bitness.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void vlcControl_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly  = Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            // Default installation path of VideoLAN.LibVLC.Windows
            e.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, "libvlc", IntPtr.Size == 4 ? "win-x86" : "win-x64"));
        }
Example #13
0
 private void vlcControl2_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
 {
     if (IntPtr.Size == 4)
     {
         e.VlcLibDirectory = new DirectoryInfo(@"C:\Users\andre\source\repos\s1nav\PointSignage\PointSignage\PointClient\bin\x64\Debug\libvlc\win-x64");
     }
     else
     {
         e.VlcLibDirectory = new DirectoryInfo(@"C:\Users\andre\source\repos\s1nav\PointSignage\PointSignage\PointClient\bin\x64\Debug\libvlc\win-x64");
     }
 }
Example #14
0
        private void OnVlcControlNeedsLibDirectory(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly  = Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            if (currentDirectory == null)
            {
                return;
            }
            e.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, @"VLC\"));
        }
Example #15
0
 private void VLCtab_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
 {
     if (IntPtr.Size == 4)
     {
         e.VlcLibDirectory = new DirectoryInfo(Settings.VlcLib + "win-x86");
     }
     else
     {
         e.VlcLibDirectory = new DirectoryInfo(Settings.VlcLib + "win-x64");
     }
 }
Example #16
0
 private void vlcControl1_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
 {
     if (IntPtr.Size == 4)
     {
         e.VlcLibDirectory = new DirectoryInfo(System.IO.Path.Combine(".", "libvlc", "win-x86"));
     }
     else
     {
         e.VlcLibDirectory = new DirectoryInfo(System.IO.Path.Combine(".", "libvlc", "win-x64"));
     }
 }
Example #17
0
        private void VlcControl1_VlcLibDirectoryNeeded_1(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            // It will generate logs
            VlcControl1.VlcMediaplayerOptions = new[] { "--file-logging", "-vvv", "--logfile=Logs.log" };

            // These lines will set libvlc dir
            var currentAssembly  = Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            e.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, "libvlc", IntPtr.Size == 4 ? "win-x86" : "win-x64"));
        }
Example #18
0
 private void vlcControl1_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
 {
     // VLC to be initialised with the directory containing its binaries
     if (IntPtr.Size == 4)
     {
         e.VlcLibDirectory = new DirectoryInfo(@".\libvlc\win-x86\");
     }
     else
     {
         e.VlcLibDirectory = new DirectoryInfo(@".\libvlc\win-x64\");
     }
 }
Example #19
0
        private void Media_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var dir = GetVLCLibPath();

            if (dir == string.Empty)
            {
                e.VlcLibDirectory = null; // this will throw a exception
            }
            else
            {
                e.VlcLibDirectory = new DirectoryInfo(dir);
            }
        }
Example #20
0
        private void MediaPlayer_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly  = Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            if (currentDirectory == null)
            {
                return;
            }
            //if (AssemblyName.GetAssemblyName(currentAssembly.Location).ProcessorArchitecture == ProcessorArchitecture.X86)
            e.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, @".\lib\x86\"));
            //else
            //    e.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, @".\lib\x64\"));
        }
Example #21
0
        private void OnVlcControlNeedsLibDirectory(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly  = Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            if (IntPtr.Size == 4)
            {
                e.VlcLibDirectory = new DirectoryInfo(System.IO.Path.Combine(currentDirectory, @"libvlc\x86\"));
            }
            else
            {
                e.VlcLibDirectory = new DirectoryInfo(System.IO.Path.Combine(currentDirectory, @"libvlc\x64\"));
            }
        }
        private void OnVlcControlNeedsLibDirectory(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var assemblyCourant           = Assembly.GetEntryAssembly();
            var repertoireCourantSolution = new FileInfo(assemblyCourant.Location).DirectoryName;

            if (repertoireCourantSolution == null)
            {
                return;
            }
            var version = "3.0.4";

            e.VlcLibDirectory = new DirectoryInfo(Path.Combine(repertoireCourantSolution, "lib", "vlc", version, IntPtr.Size == 4 ? "x86" : "x64"));
            Msg.Publication("Lib choisie: " + e.VlcLibDirectory);
        }
Example #23
0
        private void vlcControl1_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly  = Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            // Default installation path of VideoLAN.LibVLC.Windows
            e.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, "libvlc", IntPtr.Size == 4 ? "win-x86" : "win-x64"));

            /*
             * 作者:小徐不知道
             * 链接:https://www.jianshu.com/p/83f17f658a6a
             * 來源:简书
             * 简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
             */
        }
Example #24
0
        private void MediaPlayer_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly  = Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            if (currentDirectory == null)
            {
                return;
            }

            //TODO: Remove this as 64bit support for VLC is flakey atm?
            //if (AssemblyName.GetAssemblyName(currentAssembly.Location).ProcessorArchitecture == ProcessorArchitecture.X86)
            e.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, @"VLCLib\VLC86\"));
            //else
            //    e.VlcLibDirectory = new DirectoryInfo(Path.Combine(currentDirectory, @"lib\x64\"));
        }
Example #25
0
        void vlcControl1_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly = Assembly.GetCallingAssembly();

            //var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;
            //if (currentDirectory == null)
            //return;
            if (AssemblyName.GetAssemblyName(currentAssembly.Location).ProcessorArchitecture == ProcessorArchitecture.X86)
            {
                e.VlcLibDirectory = new DirectoryInfo(@"f:\lib\x86\");
            }
            else
            {
                e.VlcLibDirectory = new DirectoryInfo(@"f:\lib\x64\");
            }
            //throw new NotImplementedException();
        }
Example #26
0
        //手动设置vlc的native 的dll库,用于自己安装了vlc播放器,直接调用vlc中的库文件
        //如果已经nuget对应的VideoLAN.LibVLC.Windows则会自动下载如下的库文件,也需要设置路径。
        private void vlcControl1_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly = Assembly.GetEntryAssembly();
            var currentDire     = new FileInfo(currentAssembly.Location).DirectoryName;

            if (currentDire != null)
            {
                if (IntPtr.Size == 4)
                {
                    e.VlcLibDirectory = new DirectoryInfo(Path.GetFullPath(@".\libvlc\win-x86\"));
                }
                else
                {
                    e.VlcLibDirectory = new DirectoryInfo(Path.GetFullPath(@".\libvlc\win-x64\"));
                }
            }
        }
Example #27
0
        void MediaPlayer_VlcLibDirectoryNeeded(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly  = Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            if (currentDirectory == null)
            {
                return;
            }
            if (AssemblyName.GetAssemblyName(currentAssembly.Location).ProcessorArchitecture == ProcessorArchitecture.X86)
            {
                e.VlcLibDirectory = new DirectoryInfo(currentDirectory);
            }
            else
            {
                e.VlcLibDirectory = new DirectoryInfo(currentDirectory);
            }
        }
Example #28
0
        private void OnVlcControlNeedsLibDirectory(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly  = System.Reflection.Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            if (currentDirectory == null)
            {
                return;
            }
            if (IntPtr.Size == 4)
            {
                e.VlcLibDirectory = new DirectoryInfo(System.IO.Path.Combine(currentDirectory, @"d:\Program Files (x86)\VideoLAN\VLC\"));
            }
            else
            {
                e.VlcLibDirectory = new DirectoryInfo(System.IO.Path.Combine(currentDirectory, @"D:\temp\src\onvifex\Vlc.DotNet-develop\lib\x64"));
            }
        }
        private void OnVlcControlNeedsLibDirectory(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly  = System.Reflection.Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            if (currentDirectory == null)
            {
                return;
            }
            if (IntPtr.Size == 4)
            {
                e.VlcLibDirectory = new DirectoryInfo(System.IO.Path.Combine(currentDirectory, vlcPath));
            }
            else
            {
                e.VlcLibDirectory = new DirectoryInfo(System.IO.Path.Combine(currentDirectory, onvifexPath));
            }
        }
Example #30
0
        private void OnVlcControlNeedsLibDirectory(object sender, Vlc.DotNet.Forms.VlcLibDirectoryNeededEventArgs e)
        {
            var currentAssembly  = Assembly.GetEntryAssembly();
            var currentDirectory = new FileInfo(currentAssembly.Location).DirectoryName;

            if (currentDirectory == null)
            {
                return;
            }
            if (AssemblyName.GetAssemblyName(currentAssembly.Location).ProcessorArchitecture == ProcessorArchitecture.X86)
            {
                e.VlcLibDirectory = new DirectoryInfo(System.IO.Path.Combine(currentDirectory, @"..\..\..\lib\x86\"));
            }
            else
            {
                e.VlcLibDirectory = new DirectoryInfo(System.IO.Path.Combine(currentDirectory, @"..\..\..\lib\x64\"));
            }
        }