diff options
author | Marco Ambrosini <marcoambrosini@pm.me> | 2021-07-07 14:12:22 +0200 |
---|---|---|
committer | Marco Ambrosini <marcoambrosini@pm.me> | 2021-07-07 14:16:15 +0200 |
commit | 1fb72c80e5283b80cdbefb7dd120bcac8bf3c464 (patch) | |
tree | e0cdf3a741211aee1b8494016c62cec06c5a3665 /src/App.vue | |
parent | 2144b606228aa40b2fc21f298a3e17ad9a754152 (diff) |
Initialize the wav encoder in the entry points instead of in the audiorecorder component
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'src/App.vue')
-rw-r--r-- | src/App.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/App.vue b/src/App.vue index fbb847040..df1a5a1b7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -66,6 +66,8 @@ import UploadEditor from './components/UploadEditor' import SettingsDialog from './components/SettingsDialog/SettingsDialog' import ConversationSettingsDialog from './components/ConversationSettings/ConversationSettingsDialog' import '@nextcloud/dialogs/styles/toast.scss' +import { register } from 'extendable-media-recorder' +import { connect } from 'extendable-media-recorder-wav-encoder' export default { name: 'App', @@ -325,7 +327,7 @@ export default { } }, - mounted() { + async mounted() { // see browserCheck mixin this.checkBrowser() // Check sidebar status in previous sessions @@ -334,6 +336,8 @@ export default { } else if (BrowserStorage.getItem('sidebarOpen') === 'true') { this.$store.dispatch('showSidebar') } + + register(await connect()) }, methods: { |