oEmbed            http://puresign.be                                 oEmbed            @puresign                          ...
oEmbed   Contents                             • What?                             • oEmbed in Drupal                      ...
oEmbed                             What is it?Thursday 13 September 2012
oEmbed              What?                             oEmbed is a format for allowing an                             embed...
oEmbed              What?          Consumer:                             http://www.flickr.com/services/oembed/?url=http%3A...
oEmbed              What?                             http://www.youtube.com/watch?v=yzdZHByJmFUa                         ...
oEmbed                             oEmbed in                               DrupalThursday 13 September 2012
oEmbed              What?              http://drupal.org/project/oembed                                 By Dave Reid - ban...
oEmbed                                                                oEmbed       Core                  • Manage oEmbed p...
oEmbed                 oEmbed       Core                                      10Thursday 13 September 2012
oEmbed                                                       oEmbed       Field                             • Provides an ...
oEmbed                                                    oEmbed       Filter                             • Provides oEmbe...
oEmbed                                                         oEmbed  Embed.ly                             • Adds definiti...
oEmbed                                                      oEmbed      Provider                             • Makes it po...
Media:                                                       oEmbed      oEmbed                             • Integration ...
oEmbed                             Extending the                                moduleThursday 13 September 2012
oEmbedExtending                    • add support for an extra provider:                                hook_default_oembed...
oEmbed                             DemoThursday 13 September 2012
oEmbedQuestions                    Contact                             Sven Decabooter                             sven@pu...
Upcoming SlideShare
Loading in...5
×

oEmbed in Drupal

3,583

Published on

Pure Sign breakfast presentation about oEmbed in Drupal

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
3,583
On Slideshare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

oEmbed in Drupal

  1. 1. oEmbed http://puresign.be oEmbed @puresign Sven DecabooterThursday 13 September 2012
  2. 2. oEmbed Contents • What? • oEmbed in Drupal • Extending the module • Demo 2Thursday 13 September 2012
  3. 3. oEmbed What is it?Thursday 13 September 2012
  4. 4. oEmbed What? oEmbed is a format for allowing an embedded representation of a URL on third party sites. 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. http://oembed.com/ 4Thursday 13 September 2012
  5. 5. oEmbed What? Consumer: http://www.flickr.com/services/oembed/?url=http%3A// www.flickr.com/photos/bees/2341623661/ Provider: { "version": "1.0", "type": "photo", "width": 240, "height": 160, "title": "ZB8T0193", "url": "http://farm4.static.flickr.com/ 3123/2341623661_7c99f48bbf_m.jpg", "author_name": "Bees", "author_url": "http://www.flickr.com/photos/bees/", "provider_name": "Flickr", "provider_url": "http://www.flickr.com/" } 5Thursday 13 September 2012
  6. 6. oEmbed What? http://www.youtube.com/watch?v=yzdZHByJmFUa 6Thursday 13 September 2012
  7. 7. oEmbed oEmbed in DrupalThursday 13 September 2012
  8. 8. oEmbed What? http://drupal.org/project/oembed By Dave Reid - bangpound - voxpelli • oEmbed Core • oEmbed Field • oEmbed Filter • oEmbed Embed.ly • oEmbed Provider • Media: oEmbed 8Thursday 13 September 2012
  9. 9. oEmbed oEmbed Core • Manage oEmbed providers (CTools exportables) • Test oEmbed URLs • Theming for oEmbed output • Set of default providers • Form API elements: • oembed - oembed_bare - oembed_thumbnail • API functions • Caching 9Thursday 13 September 2012
  10. 10. oEmbed oEmbed Core 10Thursday 13 September 2012
  11. 11. oEmbed oEmbed Field • Provides an oEmbed Field formatter • For Link fields (http://drupal.org/project/link) 11Thursday 13 September 2012
  12. 12. oEmbed oEmbed Filter • Provides oEmbed filter for Drupal input formats 12Thursday 13 September 2012
  13. 13. oEmbed oEmbed Embed.ly • Adds definitions for providers supported by embed.ly • http://embed.ly: paid service to embed rich media in your apps / websites 13Thursday 13 September 2012
  14. 14. oEmbed oEmbed Provider • Makes it possible for a Drupal site to become an oEmbed provider itself • Provides oEmbed data in JSON / JSONP / XML formats • Defaults to rendering node HTML output 14Thursday 13 September 2012
  15. 15. Media: oEmbed oEmbed • Integration with Media module (http://drupal.org/project/media) • Creates a oEmbed PHP Stream Wrapper for Resource • Implements the various formatter and file listing hooks in the Media module. 15Thursday 13 September 2012
  16. 16. oEmbed Extending the moduleThursday 13 September 2012
  17. 17. oEmbedExtending • add support for an extra provider: hook_default_oembedcore_provider() • alter existing providers: hook_oembedprovider_alter() • alter oembed request data (to provider): hook_oembed_request_alter() • add your own providing logic (for your oembed_provider enabled website) : hook_oembedprovider() 17Thursday 13 September 2012
  18. 18. oEmbed DemoThursday 13 September 2012
  19. 19. oEmbedQuestions Contact Sven Decabooter sven@puresign.be @sdecabooter Pure Sign Liefkensstraat 35B 9032 Gent - Wondelgem Tel. 09/277 78 24 http://puresign.be contact@puresign.be @puresign 19Thursday 13 September 2012
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×