Load an empty audio file to stop the audio stream so that the audio icon disappears on some mobile devices

This commit is contained in:
Chrystian Huot 2019-07-09 12:17:08 -04:00
parent e18b6302ac
commit 8a80d0f2c6

View file

@ -240,9 +240,7 @@ export class AppRadioService implements OnDestroy {
stop(): void {
if (this._call.current) {
this._audio.pause();
// this._audio.src = null;
// this._audio.load();
this._audio.src = 'data:audio/aac;base64,//FsQAOf/N4CAExhdmM1OC4zNS4xMDAAAjBADv/xbEADn/zeAgBMYXZjNTguMzUuMTAwAAIwQA4=';
this._call.previous = this._call.current;
this._call.current = null;