Source code for examples and code covered in Drupal 7 Media book: https://www.packtpub.com/web-development/drupal-7-media