let screenRecorder =RPScreenRecorder.shared()// 麦克风或系统音频
screenRecorder.isMicrophoneEnabled =truefuncstartRecording(){guard screenRecorder.isAvailable else{print("Screen recording is not available on this device.")return}screenRecorder.startRecording { error iniflet error = error {print("Error starting recording: \(error.localizedDescription)")}else{print("Recording started successfully.")}}}