diff options
author | Marco Ambrosini <marcoambrosini@pm.me> | 2021-07-07 15:12:22 +0300 |
---|---|---|
committer | Marco Ambrosini <marcoambrosini@pm.me> | 2021-07-07 15:16:15 +0300 |
commit | 1fb72c80e5283b80cdbefb7dd120bcac8bf3c464 (patch) | |
tree | e0cdf3a741211aee1b8494016c62cec06c5a3665 /src/FilesSidebarTabApp.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/FilesSidebarTabApp.vue')
-rw-r--r-- | src/FilesSidebarTabApp.vue | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/FilesSidebarTabApp.vue b/src/FilesSidebarTabApp.vue index 47c958e1f..e447391f3 100644 --- a/src/FilesSidebarTabApp.vue +++ b/src/FilesSidebarTabApp.vue @@ -66,6 +66,8 @@ import ChatView from './components/ChatView' import sessionIssueHandler from './mixins/sessionIssueHandler' import browserCheck from './mixins/browserCheck' import '@nextcloud/dialogs/styles/toast.scss' +import { register } from 'extendable-media-recorder' +import { connect } from 'extendable-media-recorder-wav-encoder' export default { @@ -138,6 +140,11 @@ export default { }, }, + async mounted() { + // Initialise audiorecorder encoder + register(await connect()) + }, + created() { // The fetchCurrentConversation event handler/callback is started and // stopped from different FilesSidebarTabApp instances, so it needs to |