Example #1
0
        static void StartRecording()
        {
            var downloadsDir = Path.Combine(AGEnvironment.ExternalStorageDirectoryPath, AGEnvironment.DirectoryDownloads);
            var fullFilePath = Path.Combine(downloadsDir, "my_voice_recording.3gp");

            AGMediaRecorder.StartRecording(fullFilePath);
            AGUIMisc.ShowToast("Start recording to file: " + fullFilePath);
        }
Example #2
0
        public void OnStopRecording()
        {
            var recordingWasStopped = AGMediaRecorder.StopRecording();

            AGUIMisc.ShowToast(recordingWasStopped ? "Stopped recording" : "Failed to stop recording");
        }