Browse Source

Fix gc sound

master
morethanwords 3 years ago
parent
commit
b2f5c08934
  1. 4
      .env
  2. 15
      src/lib/appManagers/appGroupCallsManager.ts

4
.env

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
API_ID=1025907
API_HASH=452b0359b988148995f22ff0f4229750
VERSION=1.0.0
VERSION_FULL=1.0.0 (38)
BUILD=38
VERSION_FULL=1.0.0 (40)
BUILD=40

15
src/lib/appManagers/appGroupCallsManager.ts

@ -308,6 +308,9 @@ export class GroupCallInstance { @@ -308,6 +308,9 @@ export class GroupCallInstance {
// possible Safari fix
const audio = new Audio();
audio.play().catch(noop);
audio.autoplay = true;
audio.volume = 1.0;
this.player.append(audio);
this.elements.set('audio', audio);
}
@ -638,9 +641,15 @@ export class GroupCallInstance { @@ -638,9 +641,15 @@ export class GroupCallInstance {
// audio.play();
elements.set(elementEndpoint, element);
}/* else {
element.srcObject = useStream;
} */
} else {
if(element.paused) {
element.play().catch(noop);
}
if(element.srcObject !== useStream) {
element.srcObject = useStream;
}
}
if(isOutput) {
const entry = description.getEntryBySource(+source);

Loading…
Cancel
Save