[spice-html5 audio 3/4] Rely on the auto play attribute.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]