[Spice-devel] [spice-html5 audio 3/4] Rely on the auto play attribute.
Jeremy White
jwhite at codeweavers.com
Wed Sep 28 20:25:03 UTC 2016
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 <jwhite at 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
More information about the Spice-devel
mailing list