|
|
|
@ -26,12 +26,18 @@ window.RecordAudio = (function () { |
|
|
|
|
var formData = new FormData(); |
|
|
|
|
formData.append('audio_blob', recordedBlob, fileName + fileExtension); |
|
|
|
|
formData.append('audio_dir', rtcInfo.directory); |
|
|
|
|
formData.append('audio_dir', rtcInfo.cidReq); |
|
|
|
|
|
|
|
|
|
var courseParams = ""; |
|
|
|
|
if (rtcInfo.cidReq) { |
|
|
|
|
courseParams = "&"+rtcInfo.cidReq; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$.ajax({ |
|
|
|
|
url: _p.web_ajax + 'record_audio_rtc.ajax.php?' + $.param({ |
|
|
|
|
type: rtcInfo.type, |
|
|
|
|
tool: (!!txtName.length ? 'document' : 'exercise') |
|
|
|
|
}), |
|
|
|
|
}) + courseParams, |
|
|
|
|
data: formData, |
|
|
|
|
processData: false, |
|
|
|
|
contentType: false, |
|
|
|
|