update: i increased my wait time to 30 seconds and it works now. It used to work with 10 second wait though.
Suggestion: pre-generate the recordingUrl so it can be available immediately, even if it points to empty or non existent file. Maybe even include it in the call ended event, that would be cool.