|
@@ -252,17 +252,15 @@ audioRecorder.prototype.stop = function() {
|
252
|
252
|
* link hacking to download all recorded audio streams
|
253
|
253
|
*/
|
254
|
254
|
audioRecorder.prototype.download = function() {
|
255
|
|
- const t = this;
|
256
|
|
-
|
257
|
255
|
this.recorders.forEach(trackRecorder => {
|
258
|
|
- const blob = new Blob(trackRecorder.data, { type: t.fileType });
|
|
256
|
+ const blob = new Blob(trackRecorder.data, { type: this.fileType });
|
259
|
257
|
const url = URL.createObjectURL(blob);
|
260
|
258
|
const a = document.createElement('a');
|
261
|
259
|
|
262
|
260
|
document.body.appendChild(a);
|
263
|
261
|
a.style = 'display: none';
|
264
|
262
|
a.href = url;
|
265
|
|
- a.download = `test.${t.fileType.split('/')[1]}`;
|
|
263
|
+ a.download = `test.${this.fileType.split('/')[1]}`;
|
266
|
264
|
a.click();
|
267
|
265
|
window.URL.revokeObjectURL(url);
|
268
|
266
|
});
|
|
@@ -283,13 +281,12 @@ audioRecorder.prototype.getRecordingResults = function() {
|
283
|
281
|
this.updateNames();
|
284
|
282
|
|
285
|
283
|
const array = [];
|
286
|
|
- const t = this;
|
287
|
284
|
|
288
|
285
|
this.recorders.forEach(
|
289
|
286
|
recorder =>
|
290
|
287
|
array.push(
|
291
|
288
|
new RecordingResult(
|
292
|
|
- new Blob(recorder.data, { type: t.fileType }),
|
|
289
|
+ new Blob(recorder.data, { type: this.fileType }),
|
293
|
290
|
recorder.name,
|
294
|
291
|
recorder.startTime)));
|
295
|
292
|
|