SlideShare a Scribd company logo
Embed Mobypicture videos using [shortcodes]




      a small walkthrough in building [shortcodes] into plugins
About me


                   Timan Rebel

                       Entrepreneur
              Social Media Consultant (Rebelic)
Business Development and technical assistance for Mobypicture

                    WordPress fanatic
             plugin and theme development
    (TheNextWeb, TechCrunch, FeedForward and my own)
Moby allows you to..
Using any phone
Maxime Verhagen
   Dutch Minister
 of foreign affairs
Ilse de Lange
Dutch Singer &
     Songwriter
Sharing is part of everyday life
Moby can send media to Wordpress




but sometimes you just want to embed an image, video or audio file
Wrote a plugin for that




and to demonstrate [shortcodes] at #wordcampnl
Wrote a plugin for that




      You've Been Hit By
Wrote a plugin for that




     You've Been Struck By
Wrote a plugin for that




      A Smooth Criminal
Wrote a plugin for that




and to demonstrate [shortcodes] at #wordcampnl
Tip: Use Google Analytics Campaign vars




http://wordpress.rebelic.nl/<plugin name>?
utm_source=wordpress&
utm_medium=plugin&
utm_campaign=<plugin name>
What are shortcodes?
Embed a Moby video
Embed a Moby video




See my Moby video
Request video through Moby API




Don’t use Snoopy class, it’s deprecated
Don’t use curl, it might not be available
• postMedia                   • postComment
    • postMediaUrl                • getComments

    • getThumb                    • searchPosts
    • getThumbUrl
    • getMediaInfo                • createUser
                                  • checkCredentials



Request API key at api.mobypicture.com
REST API (get/post)

k (api key)

t (tiny url code)

action=getMediaInfo

format=xml
<?xml version="1.0"?>

<media>
   <type>video</type>
   <url_thumbnail>http://vid.mobypicture.com/ccb3b610aa3eade07bef239a487f0dd5_thumbnail
   <url_square>http://vid.mobypicture.com/ccb3b610aa3eade07bef239a487f0dd5_square.jpg</u
   <url_full>http://vid.mobypicture.com/ccb3b610aa3eade07bef239a487f0dd5_full.jpg</url_full>
   <url_video>http://vid.mobypicture.com/ccb3b610aa3eade07bef239a487f0dd5.mp4</url_video
   <original_width>848</original_width>
   <original_height>480</original_height>
   <processing>0</processing>
</media>
<?xml version="1.0"?>




Try not to use PHP5+ only functions
Hard with XML, but simple parsing can be done with regexp
Almost finished, let’s return
Custom width and height




[mobyvideo width=1900 height=1080]http://moby.to/c69r6t[/mobyvideo]
Custom width and height
Done!
Wordcampnl - Embed Mobypicture using shortcodes
Thank you for sharing
Timan Rebel
                 @timanrebel

presentation and plugin code on Mobypicture.com

More Related Content

PDF
Get Seen: Web Video Word Camp Boston
KEY
WordCamp Spain 2010 Presentation
PPTX
Professional WordPress Workflow - WPDay 2015
PDF
Introduction to WordPress REST API
DOCX
Flashcode to film
PPT
WordPress Power Tips by Lorelle VanFossen
PPTX
10x10 presentation tag
PPT
WordPress, an Open Source CMS Technologies
Get Seen: Web Video Word Camp Boston
WordCamp Spain 2010 Presentation
Professional WordPress Workflow - WPDay 2015
Introduction to WordPress REST API
Flashcode to film
WordPress Power Tips by Lorelle VanFossen
10x10 presentation tag
WordPress, an Open Source CMS Technologies

More from Timan Rebel (20)

PDF
Startup analytics - aka Actionable metrics
PPTX
App academy - Parse
PDF
Titanium Meetup Amsterdam - Alloy
PDF
Building maps for apps in the cloud - a Softlayer Use Case
PDF
Snowciety Product presentation
KEY
Edu-actief: Ondernemen is een lifestyle
KEY
Masterclass Social Media
KEY
The Next Web Hackathon - API intro
KEY
HTML5 - Beyond the Hype - Adobe Usergroup feb 2011
KEY
Why 3rd party identities are more valuable than your own
PDF
Agile service design door de ogen van een internet start-up
PDF
Mobypicture is already using hml5, so can you!
KEY
Twestival presentatie Mobypicture
PPT
VRMevent: 4 - Bart Stevens - iChoosr
PPT
VRMevent: 7 - Doc Searls - ProjectVRM
PPT
VRMevent: 6 - Joost Gielen - Werkspot
PPT
VRMevent: 5 - James Patterson - Plebble
PPT
VRMevent: 3 - Luuk Boonstra - Beabo
PPT
VRMevent: 2 - Naos Wilbrink - RapidSugar
PPT
VRMevent: 1 - Introductie door Maarten Lens-FitzGerald
Startup analytics - aka Actionable metrics
App academy - Parse
Titanium Meetup Amsterdam - Alloy
Building maps for apps in the cloud - a Softlayer Use Case
Snowciety Product presentation
Edu-actief: Ondernemen is een lifestyle
Masterclass Social Media
The Next Web Hackathon - API intro
HTML5 - Beyond the Hype - Adobe Usergroup feb 2011
Why 3rd party identities are more valuable than your own
Agile service design door de ogen van een internet start-up
Mobypicture is already using hml5, so can you!
Twestival presentatie Mobypicture
VRMevent: 4 - Bart Stevens - iChoosr
VRMevent: 7 - Doc Searls - ProjectVRM
VRMevent: 6 - Joost Gielen - Werkspot
VRMevent: 5 - James Patterson - Plebble
VRMevent: 3 - Luuk Boonstra - Beabo
VRMevent: 2 - Naos Wilbrink - RapidSugar
VRMevent: 1 - Introductie door Maarten Lens-FitzGerald

Recently uploaded (20)

PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
project resource management chapter-09.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
A Presentation on Artificial Intelligence
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Mushroom cultivation and it's methods.pdf
PDF
August Patch Tuesday
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
WOOl fibre morphology and structure.pdf for textiles
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
project resource management chapter-09.pdf
A comparative analysis of optical character recognition models for extracting...
A Presentation on Artificial Intelligence
Group 1 Presentation -Planning and Decision Making .pptx
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Univ-Connecticut-ChatGPT-Presentaion.pdf
Programs and apps: productivity, graphics, security and other tools
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Hindi spoken digit analysis for native and non-native speakers
Unlocking AI with Model Context Protocol (MCP)
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Mushroom cultivation and it's methods.pdf
August Patch Tuesday
gpt5_lecture_notes_comprehensive_20250812015547.pdf
TLE Review Electricity (Electricity).pptx
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Digital-Transformation-Roadmap-for-Companies.pptx
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf

Wordcampnl - Embed Mobypicture using shortcodes

  • 1. Embed Mobypicture videos using [shortcodes] a small walkthrough in building [shortcodes] into plugins
  • 2. About me Timan Rebel Entrepreneur Social Media Consultant (Rebelic) Business Development and technical assistance for Mobypicture WordPress fanatic plugin and theme development (TheNextWeb, TechCrunch, FeedForward and my own)
  • 5. Maxime Verhagen Dutch Minister of foreign affairs
  • 6. Ilse de Lange Dutch Singer & Songwriter
  • 7. Sharing is part of everyday life
  • 8. Moby can send media to Wordpress but sometimes you just want to embed an image, video or audio file
  • 9. Wrote a plugin for that and to demonstrate [shortcodes] at #wordcampnl
  • 10. Wrote a plugin for that You've Been Hit By
  • 11. Wrote a plugin for that You've Been Struck By
  • 12. Wrote a plugin for that A Smooth Criminal
  • 13. Wrote a plugin for that and to demonstrate [shortcodes] at #wordcampnl
  • 14. Tip: Use Google Analytics Campaign vars http://wordpress.rebelic.nl/<plugin name>? utm_source=wordpress& utm_medium=plugin& utm_campaign=<plugin name>
  • 16. Embed a Moby video
  • 17. Embed a Moby video See my Moby video
  • 18. Request video through Moby API Don’t use Snoopy class, it’s deprecated Don’t use curl, it might not be available
  • 19. • postMedia • postComment • postMediaUrl • getComments • getThumb • searchPosts • getThumbUrl • getMediaInfo • createUser • checkCredentials Request API key at api.mobypicture.com
  • 20. REST API (get/post) k (api key) t (tiny url code) action=getMediaInfo format=xml
  • 21. <?xml version="1.0"?> <media> <type>video</type> <url_thumbnail>http://vid.mobypicture.com/ccb3b610aa3eade07bef239a487f0dd5_thumbnail <url_square>http://vid.mobypicture.com/ccb3b610aa3eade07bef239a487f0dd5_square.jpg</u <url_full>http://vid.mobypicture.com/ccb3b610aa3eade07bef239a487f0dd5_full.jpg</url_full> <url_video>http://vid.mobypicture.com/ccb3b610aa3eade07bef239a487f0dd5.mp4</url_video <original_width>848</original_width> <original_height>480</original_height> <processing>0</processing> </media>
  • 22. <?xml version="1.0"?> Try not to use PHP5+ only functions Hard with XML, but simple parsing can be done with regexp
  • 24. Custom width and height [mobyvideo width=1900 height=1080]http://moby.to/c69r6t[/mobyvideo]
  • 26. Done!
  • 28. Thank you for sharing
  • 29. Timan Rebel @timanrebel presentation and plugin code on Mobypicture.com