client-sdk-flutter icon indicating copy to clipboard operation
client-sdk-flutter copied to clipboard

[bug] participant.setCameraEnabled(true); published multiple VideoTracks if pressed multiple times.

Open patrikheinonen opened this issue 2 years ago • 2 comments

Describe the bug

participant.setCameraEnabled(true); published multiple VideoTracks if pressed multiple times.

Im wondering if setMicrophoneEnabled does this as well and if it does I hope it can be fixed as well.

To Reproduce

Run example and see video:

https://github.com/livekit/client-sdk-flutter/assets/36403567/e190bf3a-86b8-406d-b8e1-7ae52443b38d

There is no proper client end frontend workaround for this like _busy that the examples connect.dart uses for room connecting because if you never accept the permissions then you will get in a state that you cant publish your camera anymore with the participant.setCameraEnabled(true)

Expected behavior

In any scenario participant.setCameraEnabled(true) should not publish multiple same video tracks.

if setMicrophoneEnabled publishes multiple audio tracks in a similar manner it should not do so.

Platform information

Flutter Web

  • Flutter version: Flutter (Channel stable, 3.16.0,)
  • Plugin version: Latest : 1.5.3
  • Flutter target OS: WEB
  • Flutter target OS version: WEB
  • Flutter console log:

patrikheinonen avatar Nov 30 '23 12:11 patrikheinonen

Having the same problem in Flutter. Has anyone figured out a solution for this?

NirmalsinhRathod avatar Jan 31 '24 10:01 NirmalsinhRathod

@NirmalsinhRathod Did you find any solution?

ArjunBhilare avatar May 06 '24 14:05 ArjunBhilare