// Releasing Camera
        private void ReleaseCamera()
        {
            if (_camera != null)
            {
                _camera.StopPreview();  // stop the preview

                _camera.Release();      // release the camera for other applications
                _camera = null;

                if (_preview != null)
                {
                    camera_preview.RemoveView(_preview);
                    _preview.Dispose();
                    _preview = null;
                }
            }
            mediaFilePath = "";
        }