PHP Stream Wrappers

Drupal Media, Now with Fieldable Entities!

If you haven't looked recently, there's been some huge progress recently for Drupal's Media module. Jacob Singh from Acquia has jumped on board, paving the way for fieldable entities! This allows Media asset objects to be a first class Drupal citizen, alongside Nodes, Users, Taxonomy, and Comments. (Hopefully in core for Drupal 8!) Also, Dipen Chaudhary has been hard at work providing WYSIWYG support!

Media as an Fieldable Entity

Read more for a tutorial...

Jon Stacey Rocked Google Summer of Code!

Jon Stacey has been a stellar student, exactly the person whom everyone hopes to attract with the Google Summer of Code. He spent the first couple of weeks becoming familiar with the project, which was to help develop the Media module for Drupal, then made a strong case to switch the focus of the project to bring the desired features directly into Drupal core.

See video

Media: YouTube (PHP Stream Wrapper)

The future of Drupal Multimedia is now!

The Media Sprint: 2009 is continuing to build up steam. I met with the folks at Zivtech in Philly yesterday, and we banged on the Media module some more. Jody Hamilton made improvements, fixing up a few things, ensuring the browser works with multiple fields, etc.

I continued backporting the Resource module (bundled with the module) to Drupal 6, to enable PHP Stream Wrappers. After that, I started work on the new Media: YouTube module and stream wrapper.

Here's a hint of how difficult it will be to implement a new stream wrapper for another third party media provider. (Drum roll, please...)

// $Id:,v 1.1 2009/01/27 21:29:50 aaron Exp $

*  @file
*  Create a YouTube Stream Wrapper class for the Media/Resource module.

*  Base class for the YouTube PHP Stream Wrapper.
class ResourceYouTubeStreamWrapper extends ResourceReadOnlyStreamWrapper {
$base_url = '';

Any questions?

Well, okay, so there will be a little more, such as parsing the URL of a passed media page. But really, it's not going to be much more than that to tie in the basic functionality of Embedded Media Field into the new "File Browser of the Internet" that we're creating with the Media Sprint.

(Next up for this particular wrapper: tie it into the YouTube API so we can save uploads to YouTube with the file system...)

Media Sprint 2009 Panel at DCDC

New panel at DrupalCon DC: Media Sprint 2009!

This January, several developers met in NYC and virtually to launch an effort to overhaul media and file handling in Drupal. The ongoing work is now coming to fruition, and this panel will present the changes and their implications to the community. Using the Media module, it's now possible for a user to use a single GUI to manage all files, including external sources such as a CDN, Amazon S3, and YouTube. We will examine the underlying PHP Stream Wrappers and Media API that makes this possible.

I will join Arthur Foelsche and Darrel O'Pry to help present this topic.

Syndicate content

The Society for Venturism has chosen me as the recipient of its charity for this year, to hopefully offer me cryonic preservation when the time comes. And this month, Longecity, an excellent forum for the discussion of issues related to extending the lifespan of humans, has offered up a matching grant of up to a thousand dollars to help out! So help out! Please.