Skip to content

localTracks.audioTrack.setEnabled(false) not working #64

Open
@ChurikiTenna

Description

@ChurikiTenna

Describe the bug

I have tried the example and everything worked fine but Mute function.

const onMute = async () => {

if (localTracks.audioTrack && localTracks.audioTrack._enabled) {
console.log("onMute true")
await localTracks.audioTrack.setEnabled(false)
} else {
console.log("onMute false")
await localTracks.audioTrack.setEnabled(true)
}
}

When I call onMute, I can see "onMute true" on the console, but it is not muted.

To Reproduce
Steps to reproduce the behavior:

  1. Call onMute during the live

Expected behavior
Mute audio

Desktop (please complete the following information):

  • OS: Mac OS
  • Browser: Chrome
  • Version: 4.13.0

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