123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- # Global plugin configurations
- enabled: true # Set to false to disable this plugin completely
- link: false # Set if display link or img, if false display img tag for not mediaembed
- built_in_css: true # Use built-in CSS of the plugin
- built_in_js: true # Use built-in JS of the plugin
- # Default options for MediaEmbed configuration
- # -- Media --
- media:
- width: 640 # Default media width
- height: 390 # Default media height including controls
- adjust: true # Adjust media or keep default dimensions?
- preview: true # Show or hide media preview
- responsive: false # Allow media to be responsive
- protocol: "http://" # Default protocol for remote media resources
- # -- Services --
- services:
- ## Audio ##
- SoundCloud:
- enabled: true # Set to false to disable this service completely
- type: "rich" # Type of the media service
- example: "https://soundcloud.com/semiseria/verruckert-ausschnitt"
- # URL of media service used for embedding
- url: "w.soundcloud.com/player/?url=http://api.soundcloud.com/tracks/{:id}"
- # Canonical URL of media service (used in endpoint calls)
- canonical: "http://soundcloud.com/{:id}"
- # Endpoint to grab media informations
- endpoint: "http://soundcloud.com/oembed?url={:canonical}&format=json"
- # Schemes to grab media id
- schemes:
- - "soundcloud.com/*"
- - "soundcloud.com/*/*"
- - "soundcloud.com/*/sets/*"
- - "soundcloud.com/groups/*"
- - "snd.sc/*"
- params:
- auto_play: false
- buying: true
- download: true
- hide_related: false
- liking: true
- sharing: true
- show_artwork: true
- show_comments: true
- show_playcount: true
- show_user: true
- visual: false
- Spotify:
- enabled: true # Set to false to disable this service completely
- type: "rich" # Type of the media service
- # Canonical URL of media service (used in endpoint calls)
- canonical: "http://open.spotify.com/track/{:id}"
- # Endpoint to grab media informations
- endpoint: "https://embed.spotify.com/oembed/?url={:canonical}&format=json"
- # Schemes to grab media id
- schemes:
- - "open.spotify.com/track/*"
- - "spoti.fi/*"
- ## Photo ##
- Flickr:
- enabled: true # Set to false to disable this service completely
- type: "photo" # Type of the media service
- # Canonical URL of media service (used in endpoint calls)
- canonical: "http://www.flickr.com/photos/{:id}"
- # Endpoint to grab media informations
- endpoint: "http://flickr.com/services/oembed?url={:canonical}&format=json"
- # Schemes to grab media id
- schemes:
- - "flickr.com/photos/*"
- - "flic.kr/*"
- Imgur:
- enabled: true # Set to false to disable this service completely
- type: "rich" # Type of the media service
- # Canonical URL of media service (used in endpoint calls)
- canonical: "http://imgur.com/gallery/{:id}"
- # Endpoint to grab media informations
- endpoint: "http://api.imgur.com/oembed?url={:canonical}&format=json"
- # Schemes to grab media id
- schemes:
- - "imgur.com/gallery/*"
- - "imgur.com/a/*"
- - "imgur.com/*"
- Instagram:
- enabled: true # Set to false to disable this service completely
- type: "rich" # Type of the media service
- # Canonical URL of media service (used in endpoint calls)
- canonical: "http://instagram.com/p/{:id}"
- # Endpoint to grab media informations
- endpoint: "http://api.instagram.com/oembed?url={:canonical}&format=json"
- # Schemes to grab media id
- schemes:
- - "instagr.am/p/*"
- - "instagram.com/p/*"
- ## Video ##
- Dailymotion: # Legacy media service name
- enabled: true # Set to false to disable this service completely
- type: "video" # Type of the legacy media service
- # URL of media service used for embedding
- url: "www.dailymotion.com/embed/video/{:id}"
- # Canonical URL of media service (used in endpoint calls)
- canonical: "http://dailymotion.com/video/{:id}"
- # Endpoint to grab media informations
- endpoint: "http://www.dailymotion.com/services/oembed?url={:canonical}&format=json"
- schemes: # Regex filter ("~REGEX~i") to grab media id
- - "dailymotion.com/video/*"
- - "dailymotion.com/*/video/*"
- - "dai\.ly/*"
- # Custom service-related media option overrides
- params:
- quality: 1080
- YouTube:
- enabled: true # Set to false to disable this service completely
- type: "video" # Type of the media service
- # URL of media service used for embedding
- url: "www.youtube.com/embed/{:id}"
- # Canonical URL of media service (used in endpoint calls)
- canonical: "http://www.youtube.com/watch?v={:id}"
- # Endpoint to grab media informations
- endpoint: "http://www.youtube.com/oembed?url={:canonical}&format=json"
- # Regex filters ("~REGEX~i") to grab media id
- schemes:
- - "youtube.com/watch?*v=*"
- - "youtube.com/embed/*"
- - "youtube.com/v/*"
- - "youtube.com/?*v=*"
- - "youtu.be/*"
- # Custom service-related media option overrides
- params:
- autoplay: 0
- modestbranding: 1
- theme: "light"
- Vimeo: # Legacy media service name
- enabled: true # Set to false to disable this service completely
- type: "video" # Type of the legacy media service
- url: "player.vimeo.com/video/{:id}"
- canonical: "https://vimeo.com/{:id}"
- # Endpoint to grab media informations
- endpoint: "http://vimeo.com/api/oembed.json?url={:canonical}"
- schemes: # Regex filter ("~REGEX~i") to grab media id
- - "vimeo.com/*"
- - "vimeo.com/channels/*/*"
- - "vimeo.com/groups/*/videos/*"
- # Custom service-related media option overrides
- params:
- autoplay: 0
- ## Others ##
- Github:
- enabled: true # Set to false to disable this service completely
- type: "rich" # Type of the media service
- # Canonical URL of media service (used in endpoint calls)
- canonical: "https://gist.github.com/{:id}"
- # Endpoint to grab media informations
- endpoint: "https://gist.github.com/{:id}.json"
- # Schemes to grab media id
- schemes:
- - "gist.github.com/*"
- - "gist.github.com/*/*"
- - "gist.github.com/*?*"
- Slides:
- enabled: true # Set to false to disable this service completely
- type: "rich" # Type of the media service
- # Canonical URL of media service (used in endpoint calls)
- canonical: "http://slides.com/{:id}"
- # Endpoint to grab media informations
- endpoint: "http://slides.com/{:id}"
- # Schemes to grab media id
- schemes:
- - "slides.com/*"
- - "slid.es/*"
- # Custom service-related media option overrides
- params:
- style: "light" # Footer style: dark, light, hidden
- width: 1920
- height: 1400
- Twitter:
- enabled: true # Set to false to disable this service completely
- type: "rich" # Type of the media service
- # Canonical URL of media service (used in endpoint calls)
- canonical: "https://twitter.com/{:id}"
- # Endpoint to grab media informations
- endpoint: "https://api.twitter.com/1/statuses/oembed.json?url={:canonical}"
- # Schemes to grab media id
- schemes:
- - "twitter.com/*"
- - "twitter.com/*/*"
|