这是indexloc提供的服务,不要输入任何密码
Skip to content

[bug]Unable to mute microphone after unmuting #683

@AoEiuV020

Description

@AoEiuV020

Describe the bug
When joining a meeting with the microphone initially muted and then performing mute/unmute operations, the microphone cannot be muted again after being unmuted.

To Reproduce

  1. Join a meeting with microphone muted (initial state)
  2. Click to unmute the microphone (works correctly)
  3. Click to mute the microphone again (no response)

Expected behavior

  • User should be able to toggle the microphone mute state at any time
  • The mute operation should properly disable the audio track regardless of the current muted state

Platform information

  • Flutter version: 3.27.1
  • Plugin version: v2.3.4+hotfix.2
  • Flutter target OS: Android
  • Flutter target OS version: 14
  • Flutter console log:

Technical Analysis

The issue has been traced to lib/src/track/local/local.dart:146 in the mute() method. The early return condition if (muted) return false; prevents the mute operation from executing when the track's muted state is already true, even though the actual muting hasn't occurred.
This issue is not present in version 2.3.3,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions