From 3633675e4b4f202773eceec69c5a43158a93b37d Mon Sep 17 00:00:00 2001 From: Jeremy White Date: Wed, 28 Sep 2016 09:16:51 -0500 Subject: [PATCH] Rely on the auto play attribute. Browsers now reliably autoplay, and issuing play prematurely can generate an error in both Firefox and Chrome. Hence we can simply remove this call and audio seems to work fine. --- playback.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/playback.js b/playback.js index f10a071..55dc0e8 100644 --- a/playback.js +++ b/playback.js @@ -142,9 +142,6 @@ SpicePlaybackConn.prototype.process_channel_message = function(msg) else this.simple_block(data, false); - if (this.audio.paused) - this.audio.play(); - return true; }