Successfully reported this slideshow.

WordPress Media in a post-Koop Universe

3

Share

1 of 19
1 of 19

More Related Content

Related Books

Free with a 14 day trial from Scribd

See all

Related Audiobooks

Free with a 14 day trial from Scribd

See all

WordPress Media in a post-Koop Universe

  1. 1. WordPress Media In a post-Koop Universe
  2. 2. Scott Taylor • Core Committer • Sr. Software Engineer, The New York Times • @wonderboymusic • I like music • I like Mexican food
  3. 3. How I got started with WordPress
  4. 4. How I got started contributing
  5. 5. How I got started with Backbone
  6. 6. How I got started with MEDIA
  7. 7. MEDIA! WordPress 3.5
  8. 8. WordPress 3.9 MORE MEDIA!
  9. 9. Backbone/Underscore • Views • Models • Collections • Frames • Regions • States
  10. 10. Underscore • Utility belt • Does not require jQuery • Smells like Ruby • List iterators
  11. 11. Backbone • Un-opinionated • MVC • Ruby-like • Hard to know what you are doing right/wrong
  12. 12. MediaElement • Facade layer for HTML5 media • Cross-browser compatibility • It just works
  13. 13. [audio], [video], [playlist]
  14. 14. Shortcodes • Containers for data • Placeholders • Forward-compatible • Shortcode API
  15. 15. Use what exists • Galleries are playlists • Video is audio • Video playlists are audio playlists • Things are collections • Embed are media
  16. 16. $( ‘.thing’ ).mediaelementplayer();
  17. 17. Front End JS • Needs to automagically work for every possible use-case • Needs to not be overly bloated
  18. 18. Admin • TinyMCE view • JS version of PHP code • Iframe sandboxes • WYSIWYG
  19. 19. wp.media.audio = { // click the view edit: { . . . }, ! // shortcode returned to the editor shortcode: { . . . }, // default props } wp.mce.views.register( ‘audio’, . . . )

×