diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-08-11 14:45:30 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-08-11 15:01:59 +0300 |
commit | b8d54947822dee84c113c048ea2c25dd9c5e495a (patch) | |
tree | de75865dbd92a1f4fc1c0f716d644b7db76a6ea3 /src/PublicShareAuthSidebar.vue | |
parent | 94c22ee79695fde8db5dfe31e08cb6b39a16da43 (diff) |
Fix duplicated registration of audio encoder
The audio encoder is initialized when the AudioRecorder component is
mounted, and the store keeps track of whether the audio encoder was
already initialized to not do it again.
However, the audio encoder was also unconditionally registered in the
main components of the main and sidebar Talk UIs, which caused a
duplicated registration when the audio encoder was initialized (as the
store did not "know" that it was already registered).
Due to all this the unconditional registration is removed (which also
avoids registering the audio encoder when it will not be needed, like
when the current user is a guest without upload permissions).
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'src/PublicShareAuthSidebar.vue')
-rw-r--r-- | src/PublicShareAuthSidebar.vue | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/PublicShareAuthSidebar.vue b/src/PublicShareAuthSidebar.vue index c55a07847..1db9a79f6 100644 --- a/src/PublicShareAuthSidebar.vue +++ b/src/PublicShareAuthSidebar.vue @@ -47,8 +47,6 @@ import { import { signalingKill } from './utils/webrtc/index' import sessionIssueHandler from './mixins/sessionIssueHandler' import talkHashCheck from './mixins/talkHashCheck' -import { register } from 'extendable-media-recorder' -import { connect } from 'extendable-media-recorder-wav-encoder' export default { @@ -99,11 +97,6 @@ export default { }, }, - async mounted() { - // Initialise audiorecorder encoder - register(await connect()) - }, - beforeMount() { window.addEventListener('unload', () => { console.info('Navigating away, leaving conversation') |