OEmbedPlugin

Easy embedding of third party content

oEmbed is a format for enabling an embedded representation of a URL on third party websites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.

All you need to do to embed material from one of the supported providers is add a link to it. The plugin will contact the provider and use the appropriate code to add it to the page, e.g. an iframe for videos and the like.

Supported providers

  1. 23HQ
  2. Abraia
  3. ActBlue
  4. Adilo
  5. Adways
  6. AltiumLLC
  7. Altru
  8. Amtraker
  9. Animatron
  10. Animoto
  11. AnnieMusic
  12. Apester
  13. ArcGISStoryMaps
  14. Archivos
  15. AudioClip
  16. Audioboom
  17. Audiomack
  18. Audiomeans
  19. Avocode
  20. Backtracks
  21. Beautiful.AI
  22. Blackfire.io
  23. Blogcast
  24. Bookingmood
  25. BoxOfficeBuz
  26. BrioVR
  27. Bumper
  28. Buttondown
  29. ByzartProject
  30. CHROCO
  31. Cacoo
  32. CatBoat
  33. Catapult
  34. Ceros
  35. Chainflix
  36. ChartBlocks
  37. CircuitLab
  38. Clipland
  39. Clyp
  40. CoCoCorp
  41. CodeHS
  42. CodePen
  43. CodeSandbox
  44. Codepoints
  45. CollegeHumor
  46. Commaful
  47. Coub
  48. CrowdRanking
  49. Crumb.sh
  50. CueupDJBooking
  51. Curated
  52. CustomerDB
  53. DALEXNI
  54. DTube
  55. Dailymotion
  56. Datawrapper
  57. DeseretNews
  58. Deviantart.com
  59. Didacte
  60. Digiteka
  61. DocDroid
  62. Dotsub
  63. EgliseInfo
  64. Embedery
  65. Embedly
  66. EnystreMusic
  67. Ethfiddle
  68. EventLive
  69. Ex.Co
  70. Eyrie
  71. FITE
  72. FOXSPORTSAustralia
  73. Facebook
  74. Fader
  75. FaithlifeTV
  76. Firework
  77. Flat
  78. Flickr
  79. Flourish
  80. FrameBuzz
  81. Framer
  82. GIPHY
  83. GMetri
  84. GTChannel
  85. GeographBritainandIreland
  86. GeographChannelIslands
  87. GeographGermany
  88. GettyImages
  89. Gfycat
  90. Gifnote
  91. GloriaTV
  92. Gong
  93. Grain
  94. Gyazo
  95. HASH
  96. HippoVideo
  97. Homey
  98. HuffDuffer
  99. Hulu
  100. IFTTT
  101. Idomoo
  102. Incredible
  103. Indaco
  104. Infogram
  105. Infoveave
  106. Injurymap
  107. Inoreader
  108. Instagram
  109. InsticatorInc
  110. Issuu
  111. Jovian
  112. KakaoTv
  113. Kickstarter
  114. Kidoju
  115. Kirim.Email
  116. Kit
  117. Kitchenbowl
  118. Knacki
  119. KnowledgePad
  120. Kooapp
  121. LeMans.Pod
  122. LearningApps.org
  123. Lille.Pod
  124. Livestream
  125. LottieFiles
  126. Ludus
  127. Lumiere
  128. MathEmbed
  129. Matterport
  130. MediaLab
  131. MedienarchivderKünste-ZürcherHochschulederKünste
  132. MermaidInk
  133. MicrosoftStream
  134. Minerva
  135. MixCloud
  136. MobyPicture
  137. MusicBoxManiacs
  138. NFTNDX.IO
  139. Namchey
  140. Nasjonalbiblioteket
  141. NaturalAtlas
  142. NoPaste
  143. OZ
  144. Observable
  145. Odds.com.au
  146. Odesli(formerlySonglink)
  147. Odysee
  148. OfficialFM
  149. Omniscope
  150. OmnyStudio
  151. OraTV
  152. Orbitvu
  153. Outplayed.tv
  154. Overflow
  155. Padlet
  156. PandaVideo
  157. Pastery
  158. PingVP
  159. Pinpoll
  160. Pinterest
  161. PitchHub
  162. Pixdor
  163. Podbean
  164. PollDaddy
  165. Portfolium
  166. Present
  167. PreziVideo
  168. Quiz.biz
  169. Quizz.biz
  170. RadioPublic
  171. Raindrop
  172. Reddit
  173. ReleaseWire
  174. Replit
  175. ReverbNation
  176. Roomshare
  177. RoosterTeeth
  178. Rumble
  179. Runkit
  180. Saooti
  181. SapoVideos
  182. Screen9
  183. Screencast.com
  184. Screenr
  185. ScribbleMaps
  186. Scribd
  187. SendtoNews
  188. ShortNote
  189. Shoudio
  190. ShowbyAnimaker
  191. ShowtheWay,actionablelocationinfo
  192. Simplecast
  193. Sizzle
  194. Sketchfab
  195. SlideShare
  196. SmashNotes
  197. Smrthi
  198. SmugMug
  199. SocialExplorer
  200. SoundCloud
  201. SpeakerDeck
  202. Spotify
  203. Spreaker
  204. SproutVideo
  205. StanfordDigitalRepository
  206. Streamable
  207. Streamio
  208. Subscribi
  209. Sudomemo
  210. Sutori
  211. Sway
  212. SwayOffice
  213. Synthesia
  214. TED
  215. TheNewYorkTimes
  216. TheySaidSo
  217. TickCounter
  218. TikTok
  219. Toornament
  220. Topy
  221. Totango
  222. TrinityAudio
  223. Tumblr
  224. Tuxx
  225. TypeCast
  226. Typlog
  227. UAPod
  228. UnivParis1.Pod
  229. UniversityofCambridgeMap
  230. Upec.Pod
  231. Ustream
  232. VEVO
  233. VLIVE
  234. VeeRVR
  235. Verse
  236. Videfit
  237. Vidyard
  238. Vimeo
  239. Viously
  240. Vizydrop
  241. Vlipsy
  242. Vouch
  243. VoxSnap
  244. Waltrack
  245. Wave.video
  246. Wiredrive
  247. Wistia,Inc.
  248. Wokwi
  249. WolframCloud
  250. WordPress.com
  251. YouTube
  252. Zeplin
  253. ZingSoft
  254. ZnipeTV
  255. Zoomable
  256. afreecaTV
  257. amChartsLiveEditor
  258. chirbit.com
  259. dadan
  260. eduMedia
  261. everviz
  262. hearthis.at
  263. hihaho
  264. iFixit
  265. iHeartRadio
  266. inphood
  267. kmdr
  268. me.me
  269. myBeweeg
  270. nanoo.tv
  271. nfb.ca
  272. rcvis
  273. tvcf
  274. uStudio,Inc.
  275. wecandeo
  276. wizer.me

A lot of providers are available via http://embed.ly. However, you'll have to register to get an api-key. Some of the listed providers have already been added to this plugin, yet not all.

Syntax

EMBED

%EMBED{"url" [width="..." height="..."]}% (or %OEMBED{...}%)

  • url: an external link to the resource to be embedded
  • width, height: optional maximum values for the image/video/... being embedded (note: not all providers properly implement these parameters)
  • format: a format string to implement a custom renderer
  • template: the name of a template defined in oembed.tmpl; known templates shipped with OEmbedPlugin are "article" (todo add more)
  • quality (youtube only): specify the thumbnail quality; possible values are hq, mq, sd, default and auto; the latter will find out automatically which best thumbnail is available
  • <custom_key>: any custom key="value" pair may be defined and made use of in the format (or template) using $custom_key to expand it; these have higher precendence than the default values submitted by the oembed provider; for example use a custom thumbnail_width="100" parameter to override the default width.

The keys in the json submitted from the oembed provider can be used in a format string (or a template definition). Some well-known keys are:

  • $author_name
  • $author_url
  • $descriptio
  • $html
  • $provider_name
  • $provider_url
  • $thumbnail_height
  • $thumbnail_url
  • $thumbnail_width
  • $title
  • $type
  • $url
  • $web_page

In addition all standard format tokens can be used ($percnt, $dollar, $nop, etc).

See the oembed.tmpl file on how to use them.

OEMBED_PROVIDER

%OEMBED_PROVIDER{["<id>"]}%

  • id: provider name to display the configuration for
  • format: format string, defaults to    1 [[$provider][$name]
  • header: header string added if there was a provider in the list
  • footer: footer string added if ...
  • separator: separator string inserted between each provider found
  • exampleformat: format strings for available examples
  • exampleheader
  • examplefooter
  • exampleseparator
  • include: regular expression that the provider must match to be included in the output
  • exclude: regular expression that the provider must not match to be included in the output

The format string may use the following variables

  • $name: name of provider
  • $examples: example string constructed from example[format,header,footer,separator]
  • $provider: url address of the provider
  • $api: api address for the oembed endpoint
  • $url: list of patterns that an url must match to be processed by this provider

To display all examples stored in the provider records use:

<form action="%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%">
*Url*: 
<input type="text" size="80" name="url" value="%URLPARAM{"url"}%" />
<input type="submit" class="foswikiButton" value="Embed" />
</form>

%IF{"$'URLPARAM{url}'!=''"
  then="$percntEMBED{\"%URLPARAM{"url"}%\"}$percnt"
}%

%OEMBED_PROVIDER{
   format="   1 $name: $examples"
   exampleformat="[[%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%?url=$url][example]]"
}%

Examples

Youbtube

%EMBED{"https://www.youtube.com/watch?v=O8e8Ttfz-pY" width="600"}%

Can't locate CHI.pm in @INC (you may need to install the CHI module) (@INC contains: /data/Foswiki-2.1.9/lib /data/Foswiki-2.1.9/lib /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /data/Foswiki-2.1.9/lib/CPAN/lib) at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib/Core.pm line 22. at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib/Core.pm line 22. Foswiki::Contrib::CacheContrib::Core::BEGIN() called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib/Core.pm line 22 eval {...} called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib/Core.pm line 22 require Foswiki/Contrib/CacheContrib/Core.pm called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib.pm line 53 Foswiki::Contrib::CacheContrib::_getCore() called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib.pm line 93 Foswiki::Contrib::CacheContrib::getCache("oembed", undef) called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib/UserAgent.pm line 70 Foswiki::Contrib::CacheContrib::UserAgent::getCache(Foswiki::Contrib::CacheContrib::UserAgent=HASH(0x563d69d9ff28)) called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib/UserAgent.pm line 127 Foswiki::Contrib::CacheContrib::UserAgent::request(Foswiki::Contrib::CacheContrib::UserAgent=HASH(0x563d69d9ff28), HTTP::Request=HASH(0x563d69dde310)) called at /usr/local/share/perl5/5.32/LWP/UserAgent.pm line 452 LWP::UserAgent::get(Foswiki::Contrib::CacheContrib::UserAgent=HASH(0x563d69d9ff28), URI::https=SCALAR(0x563d69e349f0)) called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin/Consumer.pm line 41 Foswiki::Plugins::OEmbedPlugin::Consumer::embed(Foswiki::Plugins::OEmbedPlugin::Consumer=HASH(0x563d69c3e288), "https://www.youtube.com/watch?v=O8e8Ttfz-pY") called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin/Core.pm line 153 Foswiki::Plugins::OEmbedPlugin::Core::__ANON__() called at /usr/share/perl5/vendor_perl/Error.pm line 465 eval {...} called at /usr/share/perl5/vendor_perl/Error.pm line 454 Error::subs::try(CODE(0x563d68ed3a90), HASH(0x563d68fb85c8)) called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin/Core.pm line 157 Foswiki::Plugins::OEmbedPlugin::Core::EMBED(Foswiki::Plugins::OEmbedPlugin::Core=HASH(0x563d68fb8550), Foswiki=HASH(0x563d66761260), Foswiki::Attrs=HASH(0x563d68ed7cf8), "OEmbedPlugin", "System", Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin.pm line 35 Foswiki::Plugins::OEmbedPlugin::__ANON__(Foswiki=HASH(0x563d66761260), Foswiki::Attrs=HASH(0x563d68ed7cf8), "OEmbedPlugin", "System", Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/Func.pm line 660 Foswiki::Func::__ANON__(Foswiki=HASH(0x563d66761260), Foswiki::Attrs=HASH(0x563d68ed7cf8), Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3547 Foswiki::_expandMacroOnTopicRendering(Foswiki=HASH(0x563d66761260), "EMBED", "\"https://www.youtube.com/watch?v=O8e8Ttfz-pY\" width=\"600\"", Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3409 Foswiki::_processMacros(Foswiki=HASH(0x563d66761260), "---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"..., CODE(0x563d6798fb88), Foswiki::Meta=HASH(0x563d687e5f20), 16) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3166 Foswiki::innerExpandMacros(Foswiki=HASH(0x563d66761260), SCALAR(0x563d679a8158), Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3732 Foswiki::expandMacros(Foswiki=HASH(0x563d66761260), "---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"..., Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/Meta.pm line 3400 Foswiki::Meta::expandMacros(Foswiki::Meta=HASH(0x563d687e5f20), "---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"...) called at /data/Foswiki-2.1.9/lib/Foswiki/UI/View.pm line 425 Foswiki::UI::View::_prepare("---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"..., Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/UI/View.pm line 405 Foswiki::UI::View::view(Foswiki=HASH(0x563d66761260)) called at /data/Foswiki-2.1.9/lib/Foswiki/UI.pm line 375 Foswiki::UI::__ANON__() called at /usr/share/perl5/vendor_perl/Error.pm line 465 eval {...} called at /usr/share/perl5/vendor_perl/Error.pm line 454 Error::subs::try(CODE(0x563d66754488), HASH(0x563d66760dc8)) called at /data/Foswiki-2.1.9/lib/Foswiki/UI.pm line 506 Foswiki::UI::_execute(Foswiki::Request=HASH(0x563d6720c6d0), CODE(0x563d667545d8), "view", 1) called at /data/Foswiki-2.1.9/lib/Foswiki/UI.pm line 327 Foswiki::UI::handleRequest(Foswiki::Request=HASH(0x563d6720c6d0)) called at /data/Foswiki-2.1.9/lib/Foswiki/Engine/CGI.pm line 100 Foswiki::Engine::CGI::run(Foswiki::Engine::CGI=HASH(0x563d6722ebb0)) called at /data/Foswiki-2.1.9/bin/view line 30 BEGIN failed--compilation aborted at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib/Core.pm line 22. at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib/Core.pm line 22. require Foswiki/Contrib/CacheContrib/Core.pm called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib.pm line 53 Foswiki::Contrib::CacheContrib::_getCore() called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib.pm line 93 Foswiki::Contrib::CacheContrib::getCache("oembed", undef) called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib/UserAgent.pm line 70 Foswiki::Contrib::CacheContrib::UserAgent::getCache(Foswiki::Contrib::CacheContrib::UserAgent=HASH(0x563d69d9ff28)) called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib/UserAgent.pm line 127 Foswiki::Contrib::CacheContrib::UserAgent::request(Foswiki::Contrib::CacheContrib::UserAgent=HASH(0x563d69d9ff28), HTTP::Request=HASH(0x563d69dde310)) called at /usr/local/share/perl5/5.32/LWP/UserAgent.pm line 452 LWP::UserAgent::get(Foswiki::Contrib::CacheContrib::UserAgent=HASH(0x563d69d9ff28), URI::https=SCALAR(0x563d69e349f0)) called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin/Consumer.pm line 41 Foswiki::Plugins::OEmbedPlugin::Consumer::embed(Foswiki::Plugins::OEmbedPlugin::Consumer=HASH(0x563d69c3e288), "https://www.youtube.com/watch?v=O8e8Ttfz-pY") called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin/Core.pm line 153 Foswiki::Plugins::OEmbedPlugin::Core::__ANON__() called at /usr/share/perl5/vendor_perl/Error.pm line 465 eval {...} called at /usr/share/perl5/vendor_perl/Error.pm line 454 Error::subs::try(CODE(0x563d68ed3a90), HASH(0x563d68fb85c8)) called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin/Core.pm line 157 Foswiki::Plugins::OEmbedPlugin::Core::EMBED(Foswiki::Plugins::OEmbedPlugin::Core=HASH(0x563d68fb8550), Foswiki=HASH(0x563d66761260), Foswiki::Attrs=HASH(0x563d68ed7cf8), "OEmbedPlugin", "System", Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin.pm line 35 Foswiki::Plugins::OEmbedPlugin::__ANON__(Foswiki=HASH(0x563d66761260), Foswiki::Attrs=HASH(0x563d68ed7cf8), "OEmbedPlugin", "System", Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/Func.pm line 660 Foswiki::Func::__ANON__(Foswiki=HASH(0x563d66761260), Foswiki::Attrs=HASH(0x563d68ed7cf8), Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3547 Foswiki::_expandMacroOnTopicRendering(Foswiki=HASH(0x563d66761260), "EMBED", "\"https://www.youtube.com/watch?v=O8e8Ttfz-pY\" width=\"600\"", Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3409 Foswiki::_processMacros(Foswiki=HASH(0x563d66761260), "---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"..., CODE(0x563d6798fb88), Foswiki::Meta=HASH(0x563d687e5f20), 16) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3166 Foswiki::innerExpandMacros(Foswiki=HASH(0x563d66761260), SCALAR(0x563d679a8158), Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3732 Foswiki::expandMacros(Foswiki=HASH(0x563d66761260), "---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"..., Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/Meta.pm line 3400 Foswiki::Meta::expandMacros(Foswiki::Meta=HASH(0x563d687e5f20), "---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"...) called at /data/Foswiki-2.1.9/lib/Foswiki/UI/View.pm line 425 Foswiki::UI::View::_prepare("---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"..., Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/UI/View.pm line 405 Foswiki::UI::View::view(Foswiki=HASH(0x563d66761260)) called at /data/Foswiki-2.1.9/lib/Foswiki/UI.pm line 375 Foswiki::UI::__ANON__() called at /usr/share/perl5/vendor_perl/Error.pm line 465 eval {...} called at /usr/share/perl5/vendor_perl/Error.pm line 454 Error::subs::try(CODE(0x563d66754488), HASH(0x563d66760dc8)) called at /data/Foswiki-2.1.9/lib/Foswiki/UI.pm line 506 Foswiki::UI::_execute(Foswiki::Request=HASH(0x563d6720c6d0), CODE(0x563d667545d8), "view", 1) called at /data/Foswiki-2.1.9/lib/Foswiki/UI.pm line 327 Foswiki::UI::handleRequest(Foswiki::Request=HASH(0x563d6720c6d0)) called at /data/Foswiki-2.1.9/lib/Foswiki/Engine/CGI.pm line 100 Foswiki::Engine::CGI::run(Foswiki::Engine::CGI=HASH(0x563d6722ebb0)) called at /data/Foswiki-2.1.9/bin/view line 30 Compilation failed in require at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib.pm line 53. at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib.pm line 53. Foswiki::Contrib::CacheContrib::_getCore() called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib.pm line 93 Foswiki::Contrib::CacheContrib::getCache("oembed", undef) called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib/UserAgent.pm line 70 Foswiki::Contrib::CacheContrib::UserAgent::getCache(Foswiki::Contrib::CacheContrib::UserAgent=HASH(0x563d69d9ff28)) called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib/UserAgent.pm line 127 Foswiki::Contrib::CacheContrib::UserAgent::request(Foswiki::Contrib::CacheContrib::UserAgent=HASH(0x563d69d9ff28), HTTP::Request=HASH(0x563d69dde310)) called at /usr/local/share/perl5/5.32/LWP/UserAgent.pm line 452 LWP::UserAgent::get(Foswiki::Contrib::CacheContrib::UserAgent=HASH(0x563d69d9ff28), URI::https=SCALAR(0x563d69e349f0)) called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin/Consumer.pm line 41 Foswiki::Plugins::OEmbedPlugin::Consumer::embed(Foswiki::Plugins::OEmbedPlugin::Consumer=HASH(0x563d69c3e288), "https://www.youtube.com/watch?v=O8e8Ttfz-pY") called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin/Core.pm line 153 Foswiki::Plugins::OEmbedPlugin::Core::__ANON__() called at /usr/share/perl5/vendor_perl/Error.pm line 465 eval {...} called at /usr/share/perl5/vendor_perl/Error.pm line 454 Error::subs::try(CODE(0x563d68ed3a90), HASH(0x563d68fb85c8)) called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin/Core.pm line 157 Foswiki::Plugins::OEmbedPlugin::Core::EMBED(Foswiki::Plugins::OEmbedPlugin::Core=HASH(0x563d68fb8550), Foswiki=HASH(0x563d66761260), Foswiki::Attrs=HASH(0x563d68ed7cf8), "OEmbedPlugin", "System", Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin.pm line 35 Foswiki::Plugins::OEmbedPlugin::__ANON__(Foswiki=HASH(0x563d66761260), Foswiki::Attrs=HASH(0x563d68ed7cf8), "OEmbedPlugin", "System", Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/Func.pm line 660 Foswiki::Func::__ANON__(Foswiki=HASH(0x563d66761260), Foswiki::Attrs=HASH(0x563d68ed7cf8), Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3547 Foswiki::_expandMacroOnTopicRendering(Foswiki=HASH(0x563d66761260), "EMBED", "\"https://www.youtube.com/watch?v=O8e8Ttfz-pY\" width=\"600\"", Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3409 Foswiki::_processMacros(Foswiki=HASH(0x563d66761260), "---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"..., CODE(0x563d6798fb88), Foswiki::Meta=HASH(0x563d687e5f20), 16) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3166 Foswiki::innerExpandMacros(Foswiki=HASH(0x563d66761260), SCALAR(0x563d679a8158), Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3732 Foswiki::expandMacros(Foswiki=HASH(0x563d66761260), "---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"..., Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/Meta.pm line 3400 Foswiki::Meta::expandMacros(Foswiki::Meta=HASH(0x563d687e5f20), "---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"...) called at /data/Foswiki-2.1.9/lib/Foswiki/UI/View.pm line 425 Foswiki::UI::View::_prepare("---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"..., Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/UI/View.pm line 405 Foswiki::UI::View::view(Foswiki=HASH(0x563d66761260)) called at /data/Foswiki-2.1.9/lib/Foswiki/UI.pm line 375 Foswiki::UI::__ANON__() called at /usr/share/perl5/vendor_perl/Error.pm line 465 eval {...} called at /usr/share/perl5/vendor_perl/Error.pm line 454 Error::subs::try(CODE(0x563d66754488), HASH(0x563d66760dc8)) called at /data/Foswiki-2.1.9/lib/Foswiki/UI.pm line 506 Foswiki::UI::_execute(Foswiki::Request=HASH(0x563d6720c6d0), CODE(0x563d667545d8), "view", 1) called at /data/Foswiki-2.1.9/lib/Foswiki/UI.pm line 327 Foswiki::UI::handleRequest(Foswiki::Request=HASH(0x563d6720c6d0)) called at /data/Foswiki-2.1.9/lib/Foswiki/Engine/CGI.pm line 100 Foswiki::Engine::CGI::run(Foswiki::Engine::CGI=HASH(0x563d6722ebb0)) called

Soundcloud

%EMBED{"https://soundcloud.com/safia-music/listen-to-soul-listen-to-blues" width="600"}%

Attempt to reload Foswiki/Contrib/CacheContrib/Core.pm aborted. Compilation failed in require at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib.pm line 53. at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib.pm line 53. Foswiki::Contrib::CacheContrib::_getCore() called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib.pm line 93 Foswiki::Contrib::CacheContrib::getCache("oembed", undef) called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib/UserAgent.pm line 70 Foswiki::Contrib::CacheContrib::UserAgent::getCache(Foswiki::Contrib::CacheContrib::UserAgent=HASH(0x563d69d9ff28)) called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib/UserAgent.pm line 127 Foswiki::Contrib::CacheContrib::UserAgent::request(Foswiki::Contrib::CacheContrib::UserAgent=HASH(0x563d69d9ff28), HTTP::Request=HASH(0x563d69d9c020)) called at /usr/local/share/perl5/5.32/LWP/UserAgent.pm line 452 LWP::UserAgent::get(Foswiki::Contrib::CacheContrib::UserAgent=HASH(0x563d69d9ff28), URI::https=SCALAR(0x563d69e27d28)) called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin/Consumer.pm line 41 Foswiki::Plugins::OEmbedPlugin::Consumer::embed(Foswiki::Plugins::OEmbedPlugin::Consumer=HASH(0x563d69c3e288), "https://soundcloud.com/safia-music/listen-to-soul-listen-to-b"...) called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin/Core.pm line 153 Foswiki::Plugins::OEmbedPlugin::Core::__ANON__() called at /usr/share/perl5/vendor_perl/Error.pm line 465 eval {...} called at /usr/share/perl5/vendor_perl/Error.pm line 454 Error::subs::try(CODE(0x563d68ed83e8), HASH(0x563d69cead48)) called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin/Core.pm line 157 Foswiki::Plugins::OEmbedPlugin::Core::EMBED(Foswiki::Plugins::OEmbedPlugin::Core=HASH(0x563d68fb8550), Foswiki=HASH(0x563d66761260), Foswiki::Attrs=HASH(0x563d68ed7830), "OEmbedPlugin", "System", Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin.pm line 35 Foswiki::Plugins::OEmbedPlugin::__ANON__(Foswiki=HASH(0x563d66761260), Foswiki::Attrs=HASH(0x563d68ed7830), "OEmbedPlugin", "System", Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/Func.pm line 660 Foswiki::Func::__ANON__(Foswiki=HASH(0x563d66761260), Foswiki::Attrs=HASH(0x563d68ed7830), Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3547 Foswiki::_expandMacroOnTopicRendering(Foswiki=HASH(0x563d66761260), "EMBED", "\"https://soundcloud.com/safia-music/listen-to-soul-listen-to-"..., Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3409 Foswiki::_processMacros(Foswiki=HASH(0x563d66761260), "---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"..., CODE(0x563d6798fb88), Foswiki::Meta=HASH(0x563d687e5f20), 16) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3166 Foswiki::innerExpandMacros(Foswiki=HASH(0x563d66761260), SCALAR(0x563d679a8158), Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3732 Foswiki::expandMacros(Foswiki=HASH(0x563d66761260), "---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"..., Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/Meta.pm line 3400 Foswiki::Meta::expandMacros(Foswiki::Meta=HASH(0x563d687e5f20), "---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"...) called at /data/Foswiki-2.1.9/lib/Foswiki/UI/View.pm line 425 Foswiki::UI::View::_prepare("---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"..., Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/UI/View.pm line 405 Foswiki::UI::View::view(Foswiki=HASH(0x563d66761260)) called at /data/Foswiki-2.1.9/lib/Foswiki/UI.pm line 375 Foswiki::UI::__ANON__() called at /usr/share/perl5/vendor_perl/Error.pm line 465 eval {...} called at /usr/share/perl5/vendor_perl/Error.pm line 454 Error::subs::try(CODE(0x563d66754488), HASH(0x563d66760dc8)) called at /data/Foswiki-2.1.9/lib/Foswiki/UI.pm line 506 Foswiki::UI::_execute(Foswiki::Request=HASH(0x563d6720c6d0), CODE(0x563d667545d8), "view", 1) called at /data/Foswiki-2.1.9/lib/Foswiki/UI.pm line 327 Foswiki::UI::handleRequest(Foswiki::Request=HASH(0x563d6720c6d0)) called at /data/Foswiki-2.1.9/lib/Foswiki/Engine/CGI.pm line 100 Foswiki::Engine::CGI::run(Foswiki::Engine::CGI=HASH(0x563d6722ebb0)) called

Flickr

%EMBED{"https://www.flickr.com/photos/onement/1239189689/" height="400"}%
Attempt to reload Foswiki/Contrib/CacheContrib/Core.pm aborted. Compilation failed in require at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib.pm line 53. at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib.pm line 53. Foswiki::Contrib::CacheContrib::_getCore() called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib.pm line 93 Foswiki::Contrib::CacheContrib::getCache("oembed", undef) called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib/UserAgent.pm line 70 Foswiki::Contrib::CacheContrib::UserAgent::getCache(Foswiki::Contrib::CacheContrib::UserAgent=HASH(0x563d69d9ff28)) called at /data/Foswiki-2.1.9/lib/Foswiki/Contrib/CacheContrib/UserAgent.pm line 127 Foswiki::Contrib::CacheContrib::UserAgent::request(Foswiki::Contrib::CacheContrib::UserAgent=HASH(0x563d69d9ff28), HTTP::Request=HASH(0x563d69cd6518)) called at /usr/local/share/perl5/5.32/LWP/UserAgent.pm line 452 LWP::UserAgent::get(Foswiki::Contrib::CacheContrib::UserAgent=HASH(0x563d69d9ff28), URI::https=SCALAR(0x563d69cea2f8)) called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin/Consumer.pm line 41 Foswiki::Plugins::OEmbedPlugin::Consumer::embed(Foswiki::Plugins::OEmbedPlugin::Consumer=HASH(0x563d69c3e288), "https://www.flickr.com/photos/onement/1239189689/") called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin/Core.pm line 153 Foswiki::Plugins::OEmbedPlugin::Core::__ANON__() called at /usr/share/perl5/vendor_perl/Error.pm line 465 eval {...} called at /usr/share/perl5/vendor_perl/Error.pm line 454 Error::subs::try(CODE(0x563d68ebffb0), HASH(0x563d69cee0d8)) called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin/Core.pm line 157 Foswiki::Plugins::OEmbedPlugin::Core::EMBED(Foswiki::Plugins::OEmbedPlugin::Core=HASH(0x563d68fb8550), Foswiki=HASH(0x563d66761260), Foswiki::Attrs=HASH(0x563d69cede38), "OEmbedPlugin", "System", Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/Plugins/OEmbedPlugin.pm line 35 Foswiki::Plugins::OEmbedPlugin::__ANON__(Foswiki=HASH(0x563d66761260), Foswiki::Attrs=HASH(0x563d69cede38), "OEmbedPlugin", "System", Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/Func.pm line 660 Foswiki::Func::__ANON__(Foswiki=HASH(0x563d66761260), Foswiki::Attrs=HASH(0x563d69cede38), Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3547 Foswiki::_expandMacroOnTopicRendering(Foswiki=HASH(0x563d66761260), "EMBED", "\"https://www.flickr.com/photos/onement/1239189689/\" height=\"400\"", Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3409 Foswiki::_processMacros(Foswiki=HASH(0x563d66761260), "---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"..., CODE(0x563d6798fb88), Foswiki::Meta=HASH(0x563d687e5f20), 16) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3166 Foswiki::innerExpandMacros(Foswiki=HASH(0x563d66761260), SCALAR(0x563d679a8158), Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki.pm line 3732 Foswiki::expandMacros(Foswiki=HASH(0x563d66761260), "---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"..., Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/Meta.pm line 3400 Foswiki::Meta::expandMacros(Foswiki::Meta=HASH(0x563d687e5f20), "---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"...) called at /data/Foswiki-2.1.9/lib/Foswiki/UI/View.pm line 425 Foswiki::UI::View::_prepare("---+!! OEmbedPlugin\x{a}\x{a}\x{a}\x{a}\x{a}oEmbed is a"..., Foswiki::Meta=HASH(0x563d687e5f20)) called at /data/Foswiki-2.1.9/lib/Foswiki/UI/View.pm line 405 Foswiki::UI::View::view(Foswiki=HASH(0x563d66761260)) called at /data/Foswiki-2.1.9/lib/Foswiki/UI.pm line 375 Foswiki::UI::__ANON__() called at /usr/share/perl5/vendor_perl/Error.pm line 465 eval {...} called at /usr/share/perl5/vendor_perl/Error.pm line 454 Error::subs::try(CODE(0x563d66754488), HASH(0x563d66760dc8)) called at /data/Foswiki-2.1.9/lib/Foswiki/UI.pm line 506 Foswiki::UI::_execute(Foswiki::Request=HASH(0x563d6720c6d0), CODE(0x563d667545d8), "view", 1) called at /data/Foswiki-2.1.9/lib/Foswiki/UI.pm line 327 Foswiki::UI::handleRequest(Foswiki::Request=HASH(0x563d6720c6d0)) called at /data/Foswiki-2.1.9/lib/Foswiki/Engine/CGI.pm line 100 Foswiki::Engine::CGI::run(Foswiki::Engine::CGI=HASH(0x563d6722ebb0)) called

Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.

Open configure, and open the "Extensions" section. "Extensions Operation and Maintenance" Tab -> "Install, Update or Remove extensions" Tab. Click the "Search for Extensions" button. Enter part of the extension name or description and press search. Select the desired extension(s) and click install. If an extension is already installed, it will not show up in the search results.

You can also install from the shell by running the extension installer as the web server user: (Be sure to run as the webserver user, not as root!)
cd /path/to/foswiki
perl tools/extension_installer <NameOfExtension> install

If you have any problems, or if the extension isn't available in configure, then you can still install manually from the command-line. See https://foswiki.org/Support/ManuallyInstallingExtensions for more help.

Dependencies

NameVersionDescription
Moo>=0Required
Regexp::Assemble>=0Required
Foswiki::Contrib::CacheContrib>=0Required

Change History

30 Apr 2024 fixed use of CacheContrib
30 May 2023 fixed parsing video id from youtube iframes
05 May 2022 added a few more oembed providers
03 Mar 2021 adedd microsoft stream provider
22 Jan 2020 imported provider from https://github.com/iamcal/oembed; implemented %OEMBED_PROVIDER
13 Mar 2019 document quality parameter when embeding youtube videos; added quality="auto" to fetch the best thumbnail available; added support for proxy
25 Sep 2017 added clearCache REST interface for local cache maintenance
17 Nov 2016 more providers; converted Web::oEmbed from Any::Moose to Moo
07 Oct 2015 multiple providers went in & out
16 Mar 2015 added Infogram
23 Feb 2015 added a few more provider
16 Dec 2014 have an image preview for vimeo and youtube and only embed the real video when clicking on it; added Vine
25 Sep 2014 added caching
24 Sep 2014 added a custom renderer for youtube videos
29 Aug 2014 removed my opera, qirk and urtak; use https whereever possible
01 Nov 2013 added more providers
30 Aug 2013 added more providers
24 Jun 2013 added format, template and custom params; added a few more providers

PackageForm edit

Author Michael Daum
Version 7.10
Release 30 Apr 2024
Description Easy embedding of third party content
Repository https://github.com/foswiki/OEmbedPlugin
Copyright © 2013-2024 Michael Daum
License GPL (Gnu General Public License)
Home Foswiki:Extensions/OEmbedPlugin
Support Foswiki:Support/OEmbedPlugin
Topic revision: r1 - 30 Apr 2024, UnknownUser
This site is powered by FoswikiCopyright &© by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback