mediaembed.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. enabled: true
  2. link: false
  3. built_in_css: true
  4. built_in_js: true
  5. media:
  6. width: 640
  7. height: 390
  8. adjust: true
  9. preview: true
  10. responsive: true
  11. protocol: 'http://'
  12. services:
  13. SoundCloud:
  14. enabled: true
  15. type: rich
  16. example: 'https://soundcloud.com/semiseria/verruckert-ausschnitt'
  17. url: 'w.soundcloud.com/player/?url=http://api.soundcloud.com/tracks/{:id}'
  18. canonical: 'http://soundcloud.com/{:id}'
  19. endpoint: 'http://soundcloud.com/oembed?url={:canonical}&format=json'
  20. schemes:
  21. - 'soundcloud.com/*'
  22. - 'soundcloud.com/*/*'
  23. - 'soundcloud.com/*/sets/*'
  24. - 'soundcloud.com/groups/*'
  25. - 'snd.sc/*'
  26. params:
  27. auto_play: false
  28. buying: true
  29. download: true
  30. hide_related: false
  31. liking: true
  32. sharing: true
  33. show_artwork: true
  34. show_comments: true
  35. show_playcount: true
  36. show_user: true
  37. visual: false
  38. Spotify:
  39. enabled: true
  40. type: rich
  41. canonical: 'http://open.spotify.com/track/{:id}'
  42. endpoint: 'https://embed.spotify.com/oembed/?url={:canonical}&format=json'
  43. schemes:
  44. - 'open.spotify.com/track/*'
  45. - 'spoti.fi/*'
  46. Flickr:
  47. enabled: true
  48. type: photo
  49. canonical: 'http://www.flickr.com/photos/{:id}'
  50. endpoint: 'http://flickr.com/services/oembed?url={:canonical}&format=json'
  51. schemes:
  52. - 'flickr.com/photos/*'
  53. - 'flic.kr/*'
  54. Imgur:
  55. enabled: true
  56. type: rich
  57. canonical: 'http://imgur.com/gallery/{:id}'
  58. endpoint: 'http://api.imgur.com/oembed?url={:canonical}&format=json'
  59. schemes:
  60. - 'imgur.com/gallery/*'
  61. - 'imgur.com/a/*'
  62. - 'imgur.com/*'
  63. Instagram:
  64. enabled: true
  65. type: rich
  66. canonical: 'http://instagram.com/p/{:id}'
  67. endpoint: 'http://api.instagram.com/oembed?url={:canonical}&format=json'
  68. schemes:
  69. - 'instagr.am/p/*'
  70. - 'instagram.com/p/*'
  71. Dailymotion:
  72. enabled: true
  73. type: video
  74. url: 'www.dailymotion.com/embed/video/{:id}'
  75. canonical: 'http://dailymotion.com/video/{:id}'
  76. endpoint: 'http://www.dailymotion.com/services/oembed?url={:canonical}&format=json'
  77. schemes:
  78. - 'dailymotion.com/video/*'
  79. - 'dailymotion.com/*/video/*'
  80. - 'dai\.ly/*'
  81. params:
  82. quality: 1080
  83. YouTube:
  84. enabled: true
  85. type: video
  86. url: 'www.youtube.com/embed/{:id}'
  87. canonical: 'http://www.youtube.com/watch?v={:id}'
  88. endpoint: 'http://www.youtube.com/oembed?url={:canonical}&format=json'
  89. schemes:
  90. - 'youtube.com/watch?*v=*'
  91. - 'youtube.com/embed/*'
  92. - 'youtube.com/v/*'
  93. - 'youtube.com/?*v=*'
  94. - 'youtu.be/*'
  95. params:
  96. autoplay: 0
  97. modestbranding: 1
  98. theme: light
  99. Vimeo:
  100. enabled: true
  101. type: video
  102. url: 'player.vimeo.com/video/{:id}'
  103. canonical: 'https://vimeo.com/{:id}'
  104. endpoint: 'http://vimeo.com/api/oembed.json?url={:canonical}'
  105. schemes:
  106. - 'vimeo.com/*'
  107. - 'vimeo.com/channels/*/*'
  108. - 'vimeo.com/groups/*/videos/*'
  109. params:
  110. autoplay: 0
  111. Github:
  112. enabled: true
  113. type: rich
  114. canonical: 'https://gist.github.com/{:id}'
  115. endpoint: 'https://gist.github.com/{:id}.json'
  116. schemes:
  117. - 'gist.github.com/*'
  118. - 'gist.github.com/*/*'
  119. - 'gist.github.com/*?*'
  120. Slides:
  121. enabled: true
  122. type: rich
  123. canonical: 'http://slides.com/{:id}'
  124. endpoint: 'http://slides.com/{:id}'
  125. schemes:
  126. - 'slides.com/*'
  127. - 'slid.es/*'
  128. params:
  129. style: light
  130. width: 1920
  131. height: 1400
  132. Twitter:
  133. enabled: true
  134. type: rich
  135. canonical: 'https://twitter.com/{:id}'
  136. endpoint: 'https://api.twitter.com/1/statuses/oembed.json?url={:canonical}'
  137. schemes:
  138. - 'twitter.com/*'
  139. - 'twitter.com/*/*'
  140. GitHub:
  141. enabled: true