From ea37d4fa42b5ba89d6ed6fb9434aa4059e2203b7 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 7 Sep 2014 17:55:48 -0700 Subject: [PATCH] turn off autoplay for mediacru.sh embedded videos, add controls --- src/Linkification/Linkify.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 70621bb81..7516381ba 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -295,7 +295,7 @@ Linkify = return div.textContent = "ERROR: Not a valid filetype" unless embed switch embed.type when 'video/mp4', 'video/webm', 'video/ogv' - $.extend el, <%= html('') %> + $.extend el, <%= html('') %> for ext, i in ['mp4', 'webm'] el.firstChild.children[i].src = "https://mediacru.sh/#{a.dataset.uid}.#{ext}" when 'image/svg+xml', 'image/png', 'image/gif', 'image/jpeg'