def toggle_mute(self):
# Toggles the linphone mic
self.app.phone.toggle_mic()
# Update the mic image
if self.app.phone.core.mic_enabled:
self.app.chat_client.send_sync(constants.SYNC_MIC_ON)
self.ids.mute_button.source = SessionScreen.un_muted_mic_image
else:
self.app.chat_client.send_sync(constants.SYNC_MIC_OFF)
self.ids.mute_button.source = SessionScreen.muted_mic_image
评论列表
文章目录