void Awake()
        {
            if (instance != null)
            {
                Destroy(gameObject);
                return;
            }

            DontDestroyOnLoad(this);
            instance = this;

            javaInter = new JavaInterface(AppKey);
            javaInter.setOnRecorderStateListener(gameObject.name, "onStateChange");
            javaInter.setSampleRate(AudioSettings.outputSampleRate);
            int channelCount = AudioSettings.speakerMode == AudioSpeakerMode.Mono ? 1 : 2;

            javaInter.setChannelCount(channelCount > 0 ? channelCount : 2);
            javaInter.setFrameRate(25);
            javaInter.setFrameSize(Screen.width, Screen.height);
        }
        void Awake()
        {
            if (instance != null) {
                Destroy(gameObject);
                return;
            }

            DontDestroyOnLoad(this);
            instance = this;

            javaInter = new JavaInterface(AppKey, gameObject.name);
            javaInter.setOnRecorderStateListener(gameObject.name, "onStateChange");
            javaInter.setSampleRate(AudioSettings.outputSampleRate);
            int channelCount = AudioSettings.speakerMode == AudioSpeakerMode.Mono ? 1 : 2;
            javaInter.setChannelCount(channelCount > 0 ? channelCount : 2);
            javaInter.setFrameRate(25);
            InitializeFrontMostCamera();
            InitializeBackMostCamera();
        }