Browse Source

Fix gc sound

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

4
.env

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

13
src/lib/appManagers/appGroupCallsManager.ts

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

Loading…
Cancel
Save