Skip to content

Fix last local media state not remembered when the UI is reloaded#1548

Merged
nickvergessen merged 2 commits into
masterfrom
fix-last-local-media-state-not-remembered-when-the-ui-is-reloaded
Feb 18, 2019
Merged

Fix last local media state not remembered when the UI is reloaded#1548
nickvergessen merged 2 commits into
masterfrom
fix-last-local-media-state-not-remembered-when-the-ui-is-reloaded

Conversation

@danxuliu

Copy link
Copy Markdown
Member

This pull request fixes a regression introduced in c4c047a

How to test

  • Start a call with microphone and camera
  • Disable local audio and video
  • Reload the page in the browser
  • Start a call again

Result with this pull request:
Audio and video are still disabled.

Result without this pull request:
Audio and video are enabled.

When the local video is enabled or disabled its state is written to the
local storage in order to restore it in the next call. However, due to a
typo, the previous value was not properly set again when the Talk UI was
reloaded.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
When the local audio is enabled or disabled its state is written to the
local storage in order to restore it in the next call. However, the
previous value was not properly set again when the Talk UI was reloaded;
when the MediaControlsView is created the audio is not available yet, so
calling "disableAudio()" did nothing. Moreover, as "audioDisabled" was
not set to "false" once the audio was available the audio was always
enabled in "initAudioVideoSettings".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu

Copy link
Copy Markdown
Member Author

/backport to stable15

@nickvergessen nickvergessen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works

@nickvergessen
nickvergessen merged commit 4e9d7f1 into master Feb 18, 2019
@nickvergessen
nickvergessen deleted the fix-last-local-media-state-not-remembered-when-the-ui-is-reloaded branch February 18, 2019 16:01
@backportbot-nextcloud

Copy link
Copy Markdown

backport to stable15 in #1550

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants