|
|
@@ -1026,19 +1026,19 @@ export default {
|
|
|
}
|
|
|
|
|
|
|
|
|
- setTimeout(() => {
|
|
|
- if (!navigator.permissions) return;
|
|
|
- navigator.permissions.query({ name: 'microphone' }).then(ps => {
|
|
|
- if (ps.state !== 'granted') {
|
|
|
- this.recordObj.status = '0';
|
|
|
- this.recordObj.loading = false;
|
|
|
- this._cleanupTranscriber(iframe);
|
|
|
- // iframe.contentWindow.onSessionStopped = null;
|
|
|
- // iframe.contentWindow.window.onRecognizedResult = null;
|
|
|
- this.$message.warning(this.lang.ssSHNoPermStop);
|
|
|
- }
|
|
|
- }).catch(() => { });
|
|
|
- }, 2000);
|
|
|
+ //setTimeout(() => {
|
|
|
+ // if (!navigator.permissions) return;
|
|
|
+ // navigator.permissions.query({ name: 'microphone' }).then(ps => {
|
|
|
+ // if (ps.state !== 'granted') {
|
|
|
+ // this.recordObj.status = '0';
|
|
|
+ // this.recordObj.loading = false;
|
|
|
+ // this._cleanupTranscriber(iframe);
|
|
|
+ // // iframe.contentWindow.onSessionStopped = null;
|
|
|
+ // // iframe.contentWindow.window.onRecognizedResult = null;
|
|
|
+ // this.$message.warning(this.lang.ssSHNoPermStop);
|
|
|
+ // }
|
|
|
+ // }).catch(() => { });
|
|
|
+ //}, 2000);
|
|
|
// } catch (err) {
|
|
|
// console.error('startRecord error:', err);
|
|
|
// this.$message.error(this.lang.ssSHRecStartFail);
|