Commit c7d9fac
authored
fix: set proper mute state for audio/video tracks after reconnection (#963)
Closes #962
### How does it fix that?
The methods `publishAudioTrack` and `publishVideoTrack` are called on
call reconnection here -
https://github.com/livekit/client-sdk-flutter/blob/70d4d1f5fdc6f565cbe565e3d5a50d5c23b5ddef/lib/src/participant/local.dart#L560-L570
But inside the methods we're not passing the `muted` state from the old
tracks we have. It defaults to `false` because it's not set in protobuf:
https://github.com/livekit/client-sdk-flutter/blob/70d4d1f5fdc6f565cbe565e3d5a50d5c23b5ddef/lib/src/proto/livekit_rtc.pb.dart#L1153
By passing it correctly, this PR fixes the bug in the linked issue.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Fixed an issue where the muted state of audio and video tracks was not
being correctly propagated when publishing to the server.
<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 70d4d1f commit c7d9fac
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
361 | 362 | | |
362 | 363 | | |
363 | 364 | | |
364 | | - | |
| 365 | + | |
365 | 366 | | |
366 | 367 | | |
367 | 368 | | |
| |||
0 commit comments