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.

Signed-off-by: Jeremy White <jwh...@codeweavers.com>
---
 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;
     }
 
-- 
2.1.4

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to