<script>
PipeSDK.onRecordersInserted = function(){
accountHash = "ea08e08a89dd3a8178a38dede7fa4dbc";
formFieldClass = "pipe";
myRecorderObject = PipeSDK.getRecorderById('custom-id');
myRecorderObject.onSaveOk = function(recorderId, streamName, streamDuration, cameraName, micName, audioCodec, videoCodec, fileType, videoId, audioOnly, location){
document.getElementsByClassName(formFieldClass).value = "https://" + location + "/" + accountHash + "/" + streamName + ".mp4";
};
myRecorderObject.onVideoUploadSuccess = function(recorderId, filename, filetype, videoId, audioOnly, location){
document.getElementsByClassName(formFieldClass).value = "https://" + location + "/" + accountHash + "/" + filename + ".mp4";
}
myRecorderObject.onDesktopVideoUploadSuccess = function(recorderId, filename, filetype, videoId, audioOnly, location){
document.getElementsByClassName(formFieldClass).value = "https://" + location + "/" + accountHash + "/" + filename + ".mp4";
}
};
</script>