Error when execute stopRecording


I’m using the IFrame API and while recording is on, trying to invoke stopRecording command raised with error: “invalid recording mode provided”

const mode = { mode: 'file' }
api.executeCommand('stopRecording', mode)
  • Using Jitsi API lib from its source.
  • Also tried to invoke without mode, or with mode as string “file” (not passing the object)
1 Like

I had the same issue and found the solution here :

You should implement :
api.executeCommand(‘stopRecording’, ‘stream’);