-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmediaembed.yaml
241 lines (184 loc) · 7.41 KB
/
mediaembed.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
# 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/*/*"