Basic Streamable embedding
This commit is contained in:
parent
90da9764f4
commit
19a0893da2
@ -381,6 +381,20 @@ Embedding =
|
|||||||
el: (a) ->
|
el: (a) ->
|
||||||
$.el 'iframe',
|
$.el 'iframe',
|
||||||
src: "https://www.strawpoll.me/embed_1/#{a.dataset.uid}"
|
src: "https://www.strawpoll.me/embed_1/#{a.dataset.uid}"
|
||||||
|
,
|
||||||
|
key: 'Streamable'
|
||||||
|
regExp: /^\w+:\/\/(?:www\.)?streamable\.com\/([\w\d]+)/
|
||||||
|
el: (a) ->
|
||||||
|
api = "https://api.streamable.com/oembed?url=https://streamable.com/#{a.dataset.uid}"
|
||||||
|
el = $.el 'iframe',
|
||||||
|
src: "https://streamable.com/o/#{a.dataset.uid}"
|
||||||
|
width: api.width
|
||||||
|
height: api.height
|
||||||
|
el.setAttribute "allowfullscreen", "true"
|
||||||
|
el
|
||||||
|
title:
|
||||||
|
api: (uid) -> "https://api.streamable.com/oembed?url=https://streamable.com/#{uid}"
|
||||||
|
text: (_) -> _.title
|
||||||
,
|
,
|
||||||
key: 'TwitchTV'
|
key: 'TwitchTV'
|
||||||
regExp: /^\w+:\/\/(?:www\.|secure\.)?twitch\.tv\/(\w[^#\&\?]*)/
|
regExp: /^\w+:\/\/(?:www\.|secure\.)?twitch\.tv\/(\w[^#\&\?]*)/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user