SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Downloaden Sie, um offline zu lesen
oEmbed




            http://puresign.be
                                 oEmbed
            @puresign
                                 Sven Decabooter
Thursday 13 September 2012
oEmbed




   Contents
                             • What?
                             • oEmbed in Drupal
                             • Extending the module
                             • Demo




                                                               2
Thursday 13 September 2012
oEmbed




                             What is it?


Thursday 13 September 2012
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/




                                                                          4
Thursday 13 September 2012
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/"
                             }




                                                                                               5
Thursday 13 September 2012
oEmbed




              What?
                             http://www.youtube.com/watch?v=yzdZHByJmFUa




                                                                            6
Thursday 13 September 2012
oEmbed




                             oEmbed in
                               Drupal

Thursday 13 September 2012
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



                                                                          8
Thursday 13 September 2012
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


                                                                                     9
Thursday 13 September 2012
oEmbed                 oEmbed




       Core




                                      10
Thursday 13 September 2012
oEmbed                                                       oEmbed




       Field
                             • Provides an oEmbed Field formatter
                             • For Link fields
                                (http://drupal.org/project/link)




                                                                            11
Thursday 13 September 2012
oEmbed                                                    oEmbed




       Filter
                             • Provides oEmbed filter for Drupal input
                                formats




                                                                         12
Thursday 13 September 2012
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




                                                                          13
Thursday 13 September 2012
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




                                                                           14
Thursday 13 September 2012
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.




                                                                             15
Thursday 13 September 2012
oEmbed




                             Extending the
                                module

Thursday 13 September 2012
oEmbed




Extending                    • 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()


                                                                             17
Thursday 13 September 2012
oEmbed




                             Demo


Thursday 13 September 2012
oEmbed




Questions                    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
                                                              19
Thursday 13 September 2012

Weitere ähnliche Inhalte

Ähnlich wie oEmbed in Drupal

PFCongres 2012 - Rock Solid Deployment of PHP Apps
PFCongres 2012 - Rock Solid Deployment of PHP AppsPFCongres 2012 - Rock Solid Deployment of PHP Apps
PFCongres 2012 - Rock Solid Deployment of PHP AppsPablo Godel
 
Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012
Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012
Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012Treasure Data, Inc.
 
Who Pulls the Strings?
Who Pulls the Strings?Who Pulls the Strings?
Who Pulls the Strings?Ronny Trommer
 
Introducing Immutant
Introducing Immutant Introducing Immutant
Introducing Immutant Jim Crossley
 
Ruby CI with Jenkins
Ruby CI with JenkinsRuby CI with Jenkins
Ruby CI with Jenkinscowboyd
 
Best Practices for (Enterprise) OSGi applications - Tim Ward
Best Practices for (Enterprise) OSGi applications - Tim WardBest Practices for (Enterprise) OSGi applications - Tim Ward
Best Practices for (Enterprise) OSGi applications - Tim Wardmfrancis
 
Building businesspost.ie using Node.js
Building businesspost.ie using Node.jsBuilding businesspost.ie using Node.js
Building businesspost.ie using Node.jsRichard Rodger
 
Fluentd: the missing log collector
Fluentd: the missing log collectorFluentd: the missing log collector
Fluentd: the missing log collectortd_kiyoto
 
Symfony2 and MongoDB
Symfony2 and MongoDBSymfony2 and MongoDB
Symfony2 and MongoDBPablo Godel
 
Web Page Test - Beyond the Basics
Web Page Test - Beyond the BasicsWeb Page Test - Beyond the Basics
Web Page Test - Beyond the BasicsAndy Davies
 
Back-end with SonataAdminBundle (and Symfony2, of course...)
Back-end with SonataAdminBundle (and Symfony2, of course...)Back-end with SonataAdminBundle (and Symfony2, of course...)
Back-end with SonataAdminBundle (and Symfony2, of course...)Andrea Delfino
 
Of metacello, git, scripting and things
Of metacello, git, scripting and thingsOf metacello, git, scripting and things
Of metacello, git, scripting and thingsESUG
 
Newbies, you are not alone
Newbies, you are not aloneNewbies, you are not alone
Newbies, you are not aloneBrandon Dove
 
Scraping in 20 mins
Scraping in 20 minsScraping in 20 mins
Scraping in 20 minsPaul Bradshaw
 
Tame your test environment with Docker Compose
Tame your test environment with Docker ComposeTame your test environment with Docker Compose
Tame your test environment with Docker ComposeKevin Bell
 
Ironfan: Build a Hadoop Cluster in 20 minutes
Ironfan: Build a Hadoop Cluster in 20 minutesIronfan: Build a Hadoop Cluster in 20 minutes
Ironfan: Build a Hadoop Cluster in 20 minutestemujin9
 
Developing RESTful Web APIs with Python, Flask and MongoDB
Developing RESTful Web APIs with Python, Flask and MongoDBDeveloping RESTful Web APIs with Python, Flask and MongoDB
Developing RESTful Web APIs with Python, Flask and MongoDBNicola Iarocci
 

Ähnlich wie oEmbed in Drupal (20)

PFCongres 2012 - Rock Solid Deployment of PHP Apps
PFCongres 2012 - Rock Solid Deployment of PHP AppsPFCongres 2012 - Rock Solid Deployment of PHP Apps
PFCongres 2012 - Rock Solid Deployment of PHP Apps
 
Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012
Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012
Fluentd loves MongoDB, at MongoDB SV User Group, July 17, 2012
 
Who Pulls the Strings?
Who Pulls the Strings?Who Pulls the Strings?
Who Pulls the Strings?
 
Introducing Immutant
Introducing Immutant Introducing Immutant
Introducing Immutant
 
Io lang
Io langIo lang
Io lang
 
Intro to Chef
Intro to ChefIntro to Chef
Intro to Chef
 
Ruby CI with Jenkins
Ruby CI with JenkinsRuby CI with Jenkins
Ruby CI with Jenkins
 
Best Practices for (Enterprise) OSGi applications - Tim Ward
Best Practices for (Enterprise) OSGi applications - Tim WardBest Practices for (Enterprise) OSGi applications - Tim Ward
Best Practices for (Enterprise) OSGi applications - Tim Ward
 
Building businesspost.ie using Node.js
Building businesspost.ie using Node.jsBuilding businesspost.ie using Node.js
Building businesspost.ie using Node.js
 
Fluentd: the missing log collector
Fluentd: the missing log collectorFluentd: the missing log collector
Fluentd: the missing log collector
 
Complete Dojo
Complete DojoComplete Dojo
Complete Dojo
 
Symfony2 and MongoDB
Symfony2 and MongoDBSymfony2 and MongoDB
Symfony2 and MongoDB
 
Web Page Test - Beyond the Basics
Web Page Test - Beyond the BasicsWeb Page Test - Beyond the Basics
Web Page Test - Beyond the Basics
 
Back-end with SonataAdminBundle (and Symfony2, of course...)
Back-end with SonataAdminBundle (and Symfony2, of course...)Back-end with SonataAdminBundle (and Symfony2, of course...)
Back-end with SonataAdminBundle (and Symfony2, of course...)
 
Of metacello, git, scripting and things
Of metacello, git, scripting and thingsOf metacello, git, scripting and things
Of metacello, git, scripting and things
 
Newbies, you are not alone
Newbies, you are not aloneNewbies, you are not alone
Newbies, you are not alone
 
Scraping in 20 mins
Scraping in 20 minsScraping in 20 mins
Scraping in 20 mins
 
Tame your test environment with Docker Compose
Tame your test environment with Docker ComposeTame your test environment with Docker Compose
Tame your test environment with Docker Compose
 
Ironfan: Build a Hadoop Cluster in 20 minutes
Ironfan: Build a Hadoop Cluster in 20 minutesIronfan: Build a Hadoop Cluster in 20 minutes
Ironfan: Build a Hadoop Cluster in 20 minutes
 
Developing RESTful Web APIs with Python, Flask and MongoDB
Developing RESTful Web APIs with Python, Flask and MongoDBDeveloping RESTful Web APIs with Python, Flask and MongoDB
Developing RESTful Web APIs with Python, Flask and MongoDB
 

KĂźrzlich hochgeladen

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel AraĂşjo
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 

KĂźrzlich hochgeladen (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

oEmbed in Drupal

  • 1. oEmbed http://puresign.be oEmbed @puresign Sven Decabooter Thursday 13 September 2012
  • 2. oEmbed Contents • What? • oEmbed in Drupal • Extending the module • Demo 2 Thursday 13 September 2012
  • 3. oEmbed What is it? Thursday 13 September 2012
  • 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/ 4 Thursday 13 September 2012
  • 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/" } 5 Thursday 13 September 2012
  • 6. oEmbed What? http://www.youtube.com/watch?v=yzdZHByJmFUa 6 Thursday 13 September 2012
  • 7. oEmbed oEmbed in Drupal Thursday 13 September 2012
  • 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 8 Thursday 13 September 2012
  • 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 9 Thursday 13 September 2012
  • 10. oEmbed oEmbed Core 10 Thursday 13 September 2012
  • 11. oEmbed oEmbed Field • Provides an oEmbed Field formatter • For Link elds (http://drupal.org/project/link) 11 Thursday 13 September 2012
  • 12. oEmbed oEmbed Filter • Provides oEmbed lter for Drupal input formats 12 Thursday 13 September 2012
  • 13. oEmbed oEmbed Embed.ly • Adds denitions for providers supported by embed.ly • http://embed.ly: paid service to embed rich media in your apps / websites 13 Thursday 13 September 2012
  • 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 14 Thursday 13 September 2012
  • 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 le listing hooks in the Media module. 15 Thursday 13 September 2012
  • 16. oEmbed Extending the module Thursday 13 September 2012
  • 17. oEmbed Extending • 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() 17 Thursday 13 September 2012
  • 18. oEmbed Demo Thursday 13 September 2012
  • 19. oEmbed Questions 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 19 Thursday 13 September 2012