فهرست منبع

Merge pull request #3613 from nextcloud/bugfix/3560/notSendSpeakingMessageWhenMuted

avoid to send "speaking" data channel message when mic is muted
Marcel Hibbe 1 سال پیش
والد
کامیت
c016804314
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/src/main/java/com/nextcloud/talk/activities/CallActivity.kt

+ 1 - 1
app/src/main/java/com/nextcloud/talk/activities/CallActivity.kt

@@ -1117,7 +1117,7 @@ class CallActivity : CallBaseActivity() {
                         micInputAudioRecorder.read(byteArr, 0, byteArr.size)
                         val isCurrentlySpeaking = abs(byteArr[0].toDouble()) > MICROPHONE_VALUE_THRESHOLD
 
-                        if (isCurrentlySpeaking && !isSpeakingLongTerm) {
+                        if (microphoneOn && isCurrentlySpeaking && !isSpeakingLongTerm) {
                             isSpeakingLongTerm = true
                             sendIsSpeakingMessage(true)
                         } else if (!isCurrentlySpeaking && isSpeakingLongTerm) {