Ejemplo n.º 1
0
    public void Awake()
    {
        try
        {
            AVProMovieCapturePlugin.Init();
            //Debug.Log("[AVProMovieCapture] Init plugin version: " + AVProMovieCapturePlugin.GetPluginVersion().ToString("F2") + " with GPU " + SystemInfo.graphicsDeviceVersion);
        }
        catch (DllNotFoundException e)
        {
            Debug.Log("[AVProMovieCapture] Unity couldn't find the DLL, did you move the 'Plugins' folder to the root of your project?");
#if UNITY_EDITOR
            AVProMovieCaptureCopyPluginWizard.DisplayCopyDialog();
#endif
            throw e;
        }

        _isDirectX11 = SystemInfo.graphicsDeviceVersion.StartsWith("Direct3D 11");

        SelectCodec(_listVideoCodecsOnStart);
        SelectAudioCodec(_listVideoCodecsOnStart);
        SelectAudioDevice(_listVideoCodecsOnStart);
    }
Ejemplo n.º 2
0
 private void CopyPluginDLLs()
 {
     AVProMovieCaptureCopyPluginWizard.DisplayCopyDialog();
 }