Add PeerTube embedding.

This commit is contained in:
ccd0 2019-06-24 03:54:21 -07:00
parent 5ebcaffbd7
commit e5526185d6
2 changed files with 9 additions and 0 deletions

View File

@ -234,6 +234,15 @@ Embedding =
else
el.hidden = false
el
,
key: 'PeerTube'
regExp: /^(\w+:\/\/[^\/]+\/videos\/watch\/\w{8}-\w{4}-\w{4}-\w{4}-\w{12})(.*)/
el: (a) ->
options = if (start = a.dataset.options.match /[?&](start=\w+)/) then "?#{start[1]}" else ''
el = $.el 'iframe',
src: a.dataset.uid.replace('/videos/watch/', '/videos/embed/') + options
el.setAttribute "allowfullscreen", "true"
el
,
key: 'BitChute'
regExp: /^\w+:\/\/(?:www\.)?bitchute\.com\/video\/([\w\-]+)/

Binary file not shown.

After

Width:  |  Height:  |  Size: 844 B