mediaembed.yaml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. # Global plugin configurations
  2. enabled: true # Set to false to disable this plugin completely
  3. link: false # Set if display link or img, if false display img tag for not mediaembed
  4. built_in_css: true # Use built-in CSS of the plugin
  5. built_in_js: true # Use built-in JS of the plugin
  6. # Default options for MediaEmbed configuration
  7. # -- Media --
  8. media:
  9. width: 640 # Default media width
  10. height: 390 # Default media height including controls
  11. adjust: true # Adjust media or keep default dimensions?
  12. preview: true # Show or hide media preview
  13. responsive: false # Allow media to be responsive
  14. protocol: "http://" # Default protocol for remote media resources
  15. # -- Services --
  16. services:
  17. ## Audio ##
  18. SoundCloud:
  19. enabled: true # Set to false to disable this service completely
  20. type: "rich" # Type of the media service
  21. example: "https://soundcloud.com/semiseria/verruckert-ausschnitt"
  22. # URL of media service used for embedding
  23. url: "w.soundcloud.com/player/?url=http://api.soundcloud.com/tracks/{:id}"
  24. # Canonical URL of media service (used in endpoint calls)
  25. canonical: "http://soundcloud.com/{:id}"
  26. # Endpoint to grab media informations
  27. endpoint: "http://soundcloud.com/oembed?url={:canonical}&format=json"
  28. # Schemes to grab media id
  29. schemes:
  30. - "soundcloud.com/*"
  31. - "soundcloud.com/*/*"
  32. - "soundcloud.com/*/sets/*"
  33. - "soundcloud.com/groups/*"
  34. - "snd.sc/*"
  35. params:
  36. auto_play: false
  37. buying: true
  38. download: true
  39. hide_related: false
  40. liking: true
  41. sharing: true
  42. show_artwork: true
  43. show_comments: true
  44. show_playcount: true
  45. show_user: true
  46. visual: false
  47. Spotify:
  48. enabled: true # Set to false to disable this service completely
  49. type: "rich" # Type of the media service
  50. # Canonical URL of media service (used in endpoint calls)
  51. canonical: "http://open.spotify.com/track/{:id}"
  52. # Endpoint to grab media informations
  53. endpoint: "https://embed.spotify.com/oembed/?url={:canonical}&format=json"
  54. # Schemes to grab media id
  55. schemes:
  56. - "open.spotify.com/track/*"
  57. - "spoti.fi/*"
  58. ## Photo ##
  59. Flickr:
  60. enabled: true # Set to false to disable this service completely
  61. type: "photo" # Type of the media service
  62. # Canonical URL of media service (used in endpoint calls)
  63. canonical: "http://www.flickr.com/photos/{:id}"
  64. # Endpoint to grab media informations
  65. endpoint: "http://flickr.com/services/oembed?url={:canonical}&format=json"
  66. # Schemes to grab media id
  67. schemes:
  68. - "flickr.com/photos/*"
  69. - "flic.kr/*"
  70. Imgur:
  71. enabled: true # Set to false to disable this service completely
  72. type: "rich" # Type of the media service
  73. # Canonical URL of media service (used in endpoint calls)
  74. canonical: "http://imgur.com/gallery/{:id}"
  75. # Endpoint to grab media informations
  76. endpoint: "http://api.imgur.com/oembed?url={:canonical}&format=json"
  77. # Schemes to grab media id
  78. schemes:
  79. - "imgur.com/gallery/*"
  80. - "imgur.com/a/*"
  81. - "imgur.com/*"
  82. Instagram:
  83. enabled: true # Set to false to disable this service completely
  84. type: "rich" # Type of the media service
  85. # Canonical URL of media service (used in endpoint calls)
  86. canonical: "http://instagram.com/p/{:id}"
  87. # Endpoint to grab media informations
  88. endpoint: "http://api.instagram.com/oembed?url={:canonical}&format=json"
  89. # Schemes to grab media id
  90. schemes:
  91. - "instagr.am/p/*"
  92. - "instagram.com/p/*"
  93. ## Video ##
  94. Dailymotion: # Legacy media service name
  95. enabled: true # Set to false to disable this service completely
  96. type: "video" # Type of the legacy media service
  97. # URL of media service used for embedding
  98. url: "www.dailymotion.com/embed/video/{:id}"
  99. # Canonical URL of media service (used in endpoint calls)
  100. canonical: "http://dailymotion.com/video/{:id}"
  101. # Endpoint to grab media informations
  102. endpoint: "http://www.dailymotion.com/services/oembed?url={:canonical}&format=json"
  103. schemes: # Regex filter ("~REGEX~i") to grab media id
  104. - "dailymotion.com/video/*"
  105. - "dailymotion.com/*/video/*"
  106. - "dai\.ly/*"
  107. # Custom service-related media option overrides
  108. params:
  109. quality: 1080
  110. YouTube:
  111. enabled: true # Set to false to disable this service completely
  112. type: "video" # Type of the media service
  113. # URL of media service used for embedding
  114. url: "www.youtube.com/embed/{:id}"
  115. # Canonical URL of media service (used in endpoint calls)
  116. canonical: "http://www.youtube.com/watch?v={:id}"
  117. # Endpoint to grab media informations
  118. endpoint: "http://www.youtube.com/oembed?url={:canonical}&format=json"
  119. # Regex filters ("~REGEX~i") to grab media id
  120. schemes:
  121. - "youtube.com/watch?*v=*"
  122. - "youtube.com/embed/*"
  123. - "youtube.com/v/*"
  124. - "youtube.com/?*v=*"
  125. - "youtu.be/*"
  126. # Custom service-related media option overrides
  127. params:
  128. autoplay: 0
  129. modestbranding: 1
  130. theme: "light"
  131. Vimeo: # Legacy media service name
  132. enabled: true # Set to false to disable this service completely
  133. type: "video" # Type of the legacy media service
  134. url: "player.vimeo.com/video/{:id}"
  135. canonical: "https://vimeo.com/{:id}"
  136. # Endpoint to grab media informations
  137. endpoint: "http://vimeo.com/api/oembed.json?url={:canonical}"
  138. schemes: # Regex filter ("~REGEX~i") to grab media id
  139. - "vimeo.com/*"
  140. - "vimeo.com/channels/*/*"
  141. - "vimeo.com/groups/*/videos/*"
  142. # Custom service-related media option overrides
  143. params:
  144. autoplay: 0
  145. ## Others ##
  146. Github:
  147. enabled: true # Set to false to disable this service completely
  148. type: "rich" # Type of the media service
  149. # Canonical URL of media service (used in endpoint calls)
  150. canonical: "https://gist.github.com/{:id}"
  151. # Endpoint to grab media informations
  152. endpoint: "https://gist.github.com/{:id}.json"
  153. # Schemes to grab media id
  154. schemes:
  155. - "gist.github.com/*"
  156. - "gist.github.com/*/*"
  157. - "gist.github.com/*?*"
  158. Slides:
  159. enabled: true # Set to false to disable this service completely
  160. type: "rich" # Type of the media service
  161. # Canonical URL of media service (used in endpoint calls)
  162. canonical: "http://slides.com/{:id}"
  163. # Endpoint to grab media informations
  164. endpoint: "http://slides.com/{:id}"
  165. # Schemes to grab media id
  166. schemes:
  167. - "slides.com/*"
  168. - "slid.es/*"
  169. # Custom service-related media option overrides
  170. params:
  171. style: "light" # Footer style: dark, light, hidden
  172. width: 1920
  173. height: 1400
  174. Twitter:
  175. enabled: true # Set to false to disable this service completely
  176. type: "rich" # Type of the media service
  177. # Canonical URL of media service (used in endpoint calls)
  178. canonical: "https://twitter.com/{:id}"
  179. # Endpoint to grab media informations
  180. endpoint: "https://api.twitter.com/1/statuses/oembed.json?url={:canonical}"
  181. # Schemes to grab media id
  182. schemes:
  183. - "twitter.com/*"
  184. - "twitter.com/*/*"