Skip to content

Commit

Permalink
missed a spot
Browse files Browse the repository at this point in the history
  • Loading branch information
davidzhao committed Dec 4, 2024
1 parent 87a8d29 commit 4d5ed9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions livekit-rtc/livekit/rtc/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,14 @@ def mute(self):
req.local_track_mute.track_handle = self._ffi_handle.handle
req.local_track_mute.mute = True
FfiClient.instance.request(req)
self._info.muted = True

def unmute(self):
req = proto_ffi.FfiRequest()
req.local_track_mute.track_handle = self._ffi_handle.handle
req.local_track_mute.mute = False
FfiClient.instance.request(req)
self._info.muted = False

def __repr__(self) -> str:
return f"rtc.LocalAudioTrack(sid={self.sid}, name={self.name})"
Expand Down

0 comments on commit 4d5ed9c

Please sign in to comment.