From 785e3339d9c12ab7d4183fca743216c75b2484be Mon Sep 17 00:00:00 2001 From: ccd0 Date: Fri, 14 Jul 2017 23:43:33 -0700 Subject: [PATCH] Update Clyp embedding. --- src/Linkification/Embedding.coffee | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Linkification/Embedding.coffee b/src/Linkification/Embedding.coffee index ceeb47551..3a300fa85 100644 --- a/src/Linkification/Embedding.coffee +++ b/src/Linkification/Embedding.coffee @@ -240,14 +240,10 @@ Embedding = , key: 'Clyp' regExp: /^\w+:\/\/(?:www\.)?clyp\.it\/(\w+)/ - style: '' + style: 'border: 0; width: 640px; height: 160px;' el: (a) -> - el = $.el 'audio', - controls: true - preload: 'auto' - type = if el.canPlayType 'audio/ogg' then 'ogg' else 'mp3' - el.src = "https://clyp.it/#{a.dataset.uid}.#{type}" - el + $.el 'iframe', + src: "https://clyp.it/#{a.dataset.uid}/widget" , key: 'Dailymotion' regExp: /^\w+:\/\/(?:(?:www\.)?dailymotion\.com\/(?:embed\/)?video|dai\.ly)\/([A-Za-z0-9]+)[^?]*(.*)/