File tree Expand file tree Collapse file tree
macOS/APIExample/Examples/Basic/JoinChannelAudio Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -413,7 +413,14 @@ extension JoinChannelAudioMain: AgoraRtcEngineDelegate {
413413 isJoined = true
414414 let localVideo = videos [ 0 ]
415415 localVideo. uid = uid
416- LogUtils . log ( message: " Join \( channel) with uid \( uid) elapsed \( elapsed) ms " , level: . info)
416+ let config = AgoraAudioFileRecordingConfig ( )
417+ config. filePath = " xianing "
418+ config. fileRecordOption = . mic
419+ config. quality = . high
420+ config. sampleRate = 44100
421+ config. codec = false
422+ let ret = agoraKit. startAudioRecording ( config)
423+ LogUtils . log ( message: " Join \( channel) with uid \( uid) elapsed \( elapsed) ms, recording status \( ret) " , level: . info)
417424 }
418425
419426 /// callback when a remote user is joinning the channel, note audience in live broadcast mode will NOT trigger this event
You can’t perform that action at this time.
0 commit comments