Stop ring sound after outgoing call has been accepted.

This commit is contained in:
aforge
2022-06-04 21:49:01 +03:00
parent 4e720a0d5b
commit fd1c13830c
7 changed files with 61 additions and 92 deletions
+1
View File
@@ -91,6 +91,7 @@ class CallPanel extends React.PureComponent {
} }
handleVideoCallAccepted(info) { handleVideoCallAccepted(info) {
RING_SOUND.pause();
const pc = this.createPeerConnection(); const pc = this.createPeerConnection();
const stream = this.state.localStream; const stream = this.state.localStream;
stream.getTracks().forEach(track => { stream.getTracks().forEach(track => {
+1
View File
@@ -11402,6 +11402,7 @@ class CallPanel extends (react__WEBPACK_IMPORTED_MODULE_0___default().PureCompon
} }
handleVideoCallAccepted(info) { handleVideoCallAccepted(info) {
RING_SOUND.pause();
const pc = this.createPeerConnection(); const pc = this.createPeerConnection();
const stream = this.state.localStream; const stream = this.state.localStream;
stream.getTracks().forEach(track => { stream.getTracks().forEach(track => {
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+55 -88
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long