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!
The Media Sprint 2009 Wiki has a rough outline, based on an earlier document started by arthurf, but needs some serious fleshing out. I plan to begin working in earnest again on the sprint later next week and the following (am trying to slot 3-4 solid working days towards it).
There are also several volunteers who have offered to help over the coming weeks as well. We need to try to build some organization.
I'm up against a couple of roadblocks with both the Media module and its included Resource module, and need some advice to go forward with those.
Particularly, I'm not sure what's intended during media_ahah_formatter_load(), which is what, I imagine, needs to both save the gathered resource into the file system, and make sure it adds to the field or attachment in the form. Arthur's also mentioned some difficulties in conceptualizing how we'll know what metadata to collect between submission and uploading.
I've also run into problems with the Resource module in my starts for Media: YouTube. For instance, we have to instantiate some classes during hook_boot, but don't have access to drupal_get_path() at that phase of the boot process. I've created a hackish work-around, where we store the module's path during installation, and check in hook_exit if the path has changed so we can set the new variable. I'm convinced it's not the best method, but haven't figured another yet.
So I'm opening this thread (at gdo) for questions of this nature, hoping people can help out, or at least take a closer look at the modules to help flesh out a TODO list for myself and other interested developers. I personally will have a lot more questions as I go along.
Thanks,
Aaron
(Cross-posted at Groups.Drupal.org.)
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...)
<?php
// $Id: ResourceYouTubeStreamWrapper.inc,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 {
private $base_url = 'http://youtube.com/watch';
}
?>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...)
The final chapter of that section, "Automated Security Testing", explores some currently available modules that should be in the bag of tricks for not only module developers
"Drupal's User and Permissions System", begins the section most exciting to me as a developer, by describing the API and hooks offered by Drupal to help create more secure code.
"Anatomy of Vulnerabilities", offers an extensive overview of the predominate routes of attack that may be taken against a site.
Thanks a lot for article. If you use Rapidshare, you must know Rapidshare Search Engine ( http://filecraft.com ) - Easy Way To Find Files!
what does that have to do with this post?
sarees