Tim Reynolds

pyroCMS video, audio and oEmbed plugin

Text / 3 months ago

4 notes

A few weeks back I set out to create a pyroCMS plugin that would embed vimeo videos using just their Id. Not long into this process I discovered the oEmbed format that is designed for embedding media content from third party sites. 

For those who have not come across oEmbed before, like myself, it defines itself as;

 ”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.“ 

Using oEmbed and a simple oEmbed php class I threw together I’ve quickly been able to knock up both a image and video pyroCMS plugin for multiple provides that support oEmbed. The git hub repo also include a oEmbed plugging for those looking to use other embedded objects. 

My pyroCMS image plugin supports the following providers;

  • flickr
  • smugmug
  • deviantART
  • skitch
  • yfrog

While the pyroCMS video plugin implements;

  • youtube
  • vimeo
  • bambuser
  • screenr
  • ustream
  • qik
  • revision3
  • hulu

Let me know what you think, the SimpleOembed class isn’t particularly robust but theres plenty of more advanced libraries out there that support providers and discovery if your interested. 

Tags / pyroCMS / php / programming

  1. timreynolds posted this

[ Back to Top ]