From c1b261eeaade78a002c9859dbaaa479a9149fd06 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 13 Jun 2018 12:21:40 -0700 Subject: [PATCH] Mute video source element Fixes autoplay in Chrome and Safari. --- src/util/ajax.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/ajax.js b/src/util/ajax.js index 554ebb3c001..8a2df869648 100644 --- a/src/util/ajax.js +++ b/src/util/ajax.js @@ -152,6 +152,7 @@ export const getImage = function(requestParameters: RequestParameters, callback: export const getVideo = function(urls: Array, callback: Callback) { const video: HTMLVideoElement = window.document.createElement('video'); + video.muted = true; video.onloadstart = function() { callback(null, video); };