コード例 #1
0
ファイル: AVProLiveCameraManager.cs プロジェクト: wjin12/arus
        protected bool Init()
        {
            try
            {
                if (AVProLiveCameraPlugin.Init(_supportInternalFormatConversion))
                {
                    Debug.Log("[AVProLiveCamera] version " + AVProLiveCameraPlugin.GetPluginVersionString() + " initialised");
                }
                else
                {
                    Debug.LogError("[AVProLiveCamera] failed to initialise.");
                    this.enabled = false;
                    Deinit();
                    return(false);
                }
            }
            catch (System.DllNotFoundException e)
            {
                Debug.Log("[AVProLiveCamera] Unity couldn't find the DLL, did you move the 'Plugins' folder to the root of your project?");
                throw e;
            }

            GetConversionMethod();
            EnumDevices();

            _isInitialised = true;

            return(_isInitialised);
        }