speechrecorderng 2.23.8 → 2.23.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/speechrecorder/session/audiorecorder.mjs +25 -1
- package/esm2020/lib/speechrecorderng.component.mjs +2 -1
- package/esm2020/lib/spr.module.version.mjs +2 -2
- package/fesm2015/speechrecorderng.mjs +26 -1
- package/fesm2015/speechrecorderng.mjs.map +1 -1
- package/fesm2020/speechrecorderng.mjs +26 -1
- package/fesm2020/speechrecorderng.mjs.map +1 -1
- package/lib/spr.module.version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -9053,6 +9053,7 @@ class SpeechrecorderngComponent extends RecorderComponent {
|
|
|
9053
9053
|
this.uploader.listener = (ue) => {
|
|
9054
9054
|
this.uploadUpdate(ue);
|
|
9055
9055
|
};
|
|
9056
|
+
//TODO Duplicate code in AudioRecorderComponent
|
|
9056
9057
|
window.addEventListener('beforeunload', (e) => {
|
|
9057
9058
|
console.debug("Before page unload event");
|
|
9058
9059
|
if (this.ready()) {
|
|
@@ -11740,6 +11741,30 @@ class AudioRecorderComponent extends RecorderComponent {
|
|
|
11740
11741
|
this.controlAudioPlayer = new AudioPlayer(audioContext, this.ar);
|
|
11741
11742
|
}
|
|
11742
11743
|
this.ar.controlAudioPlayer = this.controlAudioPlayer;
|
|
11744
|
+
//TODO Duplicate code in SpeechRecorderComponent
|
|
11745
|
+
window.addEventListener('beforeunload', (e) => {
|
|
11746
|
+
console.debug("Before page unload event");
|
|
11747
|
+
if (this.ready()) {
|
|
11748
|
+
return;
|
|
11749
|
+
}
|
|
11750
|
+
else {
|
|
11751
|
+
// all this attempts to customize the message do not work anymore (for security reasons)!!
|
|
11752
|
+
var message = "Please do not leave the page, until all recordings are uploaded!";
|
|
11753
|
+
alert(message);
|
|
11754
|
+
e = e || window.event;
|
|
11755
|
+
if (e) {
|
|
11756
|
+
e.returnValue = message;
|
|
11757
|
+
e.cancelBubble = true;
|
|
11758
|
+
if (e.stopPropagation) {
|
|
11759
|
+
e.stopPropagation();
|
|
11760
|
+
}
|
|
11761
|
+
if (e.preventDefault) {
|
|
11762
|
+
e.preventDefault();
|
|
11763
|
+
}
|
|
11764
|
+
}
|
|
11765
|
+
return message;
|
|
11766
|
+
}
|
|
11767
|
+
});
|
|
11743
11768
|
}
|
|
11744
11769
|
ngAfterViewInit() {
|
|
11745
11770
|
this.route.queryParams.subscribe((params) => {
|
|
@@ -11868,7 +11893,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
11868
11893
|
}]
|
|
11869
11894
|
}] });
|
|
11870
11895
|
|
|
11871
|
-
const VERSION = '2.23.
|
|
11896
|
+
const VERSION = '2.23.9';
|
|
11872
11897
|
|
|
11873
11898
|
/*
|
|
11874
11899
|
* Public API Surface of speechrecorderng
|