Fix gc sound
This commit is contained in:
parent
eefc479a0e
commit
b2f5c08934
4
.env
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
|
||||||
|
@ -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 {
|
||||||
element.srcObject = useStream;
|
if(element.paused) {
|
||||||
} */
|
element.play().catch(noop);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(element.srcObject !== useStream) {
|
||||||
|
element.srcObject = useStream;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(isOutput) {
|
if(isOutput) {
|
||||||
const entry = description.getEntryBySource(+source);
|
const entry = description.getEntryBySource(+source);
|
||||||
|
Loading…
Reference in New Issue
Block a user