diff options
author | Jeremy White <jwhite@codeweavers.com> | 2016-09-28 09:16:51 -0500 |
---|---|---|
committer | Jeremy White <jwhite@codeweavers.com> | 2016-10-03 09:38:31 -0500 |
commit | 3633675e4b4f202773eceec69c5a43158a93b37d (patch) | |
tree | 8d8afb95a5c5709a6592da1976fb437b2db8dc70 | |
parent | dc5fd91f0c657ff5c87d0bf02d9be4235ca43e9f (diff) |
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.
-rw-r--r-- | playback.js | 3 |
1 files changed, 0 insertions, 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; } |