Exemple #1
0
        static VlcContext()
        {
            StartupOptions = new VlcStartupOptions();
            HandleManager  = new VlcHandleManager();
            IsInitialized  = false;

            var processorArchitecture = Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE");
            var processorArchiteW6432 = Environment.GetEnvironmentVariable("PROCESSOR_ARCHITEW6432");

            if ((!string.IsNullOrEmpty(processorArchitecture) && processorArchitecture.ToUpper() == "AMD64") ||
                (!string.IsNullOrEmpty(processorArchiteW6432) && processorArchiteW6432.ToUpper() == "AMD64"))
            {
                LibVlcPluginsPath = CommonStrings.PLUGINS_PATH_DEFAULT_VALUE_AMD64;
                LibVlcDllsPath    = CommonStrings.LIBVLC_DLLS_PATH_DEFAULT_VALUE_AMD64;
            }
            else
            {
                LibVlcPluginsPath = CommonStrings.PLUGINS_PATH_DEFAULT_VALUE_X86;
                LibVlcDllsPath    = CommonStrings.LIBVLC_DLLS_PATH_DEFAULT_VALUE_X86;
            }
        }
Exemple #2
0
        static VlcContext()
        {
            StartupOptions = new VlcStartupOptions();
            HandleManager = new VlcHandleManager();
            IsInitialized = false;
            #if !SILVERLIGHT
            var processorArchitecture = Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE");
            var processorArchiteW6432 = Environment.GetEnvironmentVariable("PROCESSOR_ARCHITEW6432");

            if ((!string.IsNullOrEmpty(processorArchitecture) && processorArchitecture.ToUpper() == "AMD64") ||
                (!string.IsNullOrEmpty(processorArchiteW6432) && processorArchiteW6432.ToUpper() == "AMD64"))
            {
                LibVlcPluginsPath = CommonStrings.PLUGINS_PATH_DEFAULT_VALUE_AMD64;
                LibVlcDllsPath = CommonStrings.LIBVLC_DLLS_PATH_DEFAULT_VALUE_AMD64;
            }
            else
            {
            #endif
                LibVlcPluginsPath = CommonStrings.PLUGINS_PATH_DEFAULT_VALUE_X86;
                LibVlcDllsPath = CommonStrings.LIBVLC_DLLS_PATH_DEFAULT_VALUE_X86;
             #if !SILVERLIGHT
               }
            #endif
        }