From 8a80d0f2c6926378f281f73af49c39eea9798da1 Mon Sep 17 00:00:00 2001 From: Chrystian Huot Date: Tue, 9 Jul 2019 12:17:08 -0400 Subject: [PATCH] Load an empty audio file to stop the audio stream so that the audio icon disappears on some mobile devices --- client/imports/app/radio/radio.service.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/imports/app/radio/radio.service.ts b/client/imports/app/radio/radio.service.ts index 0a5b2bb..da34cd7 100644 --- a/client/imports/app/radio/radio.service.ts +++ b/client/imports/app/radio/radio.service.ts @@ -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;