-
- document.querySelectorAll('audio').forEach((audioElement) => audioElement.remove());
- internals.setIcon('call');
- internals.isInCallState = false;
- },
-
- createAudioElement(source, type = 'audio/wav') {
-
- const audioElement = document.createElement('audio');
- audioElement.src = source;
- audioElement.autoplay = 'autoplay';
- audioElement.type = type;
- document.querySelector('body').appendChild(audioElement);