Here's a two-step formula for simple inline video, assuming you have jQuery Media installed on your site, doing both of these configuration steps from Administration > Site configuration > jQuery Media (at /admin/settings/jquery_media):
.node .content a in the Media class text field. (You can separate classes by comma if you want to keep existing class invocations.)
Then just add a link to a video inline to your content. Doesn't matter if it was uploaded with the node or through FTP. (The second step assumes you're using the Garland theme, or another theme that uses that CSS class designation. You might need to check the node in FireBug if you're not sure.)
Notes: This method is easy, though admittedly a bit heavy-handed. The down-side is it will be invoked regardless of whether the node actually contains a video link (fortunately it's a lightweight jQuery plugin). If you want more fine-tuned control, you can skip the first step, use a PHP filter, and just invoke it manually from in your node, using jq_add('jquery_media') (assuming you have the jQ module enabled; jquery_media_add(); otherwise). (I don't actually recommend that, because of all the security issues involved. Just stick with the first method.)
The cool thing is this will work with pretty much any media player, including the upcoming Media Player for Drupal!
If you haven't already, make sure to check out Sean Effel's latest Filefield + jQuery Media screencast! As was his earlier Feed API + Emfield video tutorial, this is a joy to watch: he does things in thirteen minutes that took developers hours or more to do even a few short months ago, and that's with a running commentary! By the end of the video, you will have learned a simple way to upload a video (using the light-weight File Field module) and have it properly displayed without any messy configurations or external libraries. Plus, as the recipe uses the jQuery Media plug-in wrapper module, the display will be cross-browser compliant and accessible.
Next on my plate for jQuery Media is to have it be easily added to nodes on an individual basis, so that a media clip could be linked inline and automatically turned into an embedded display. Additionally, I would like to make it an option for Views as well, perhaps as an additional setting. (Although even without that, my upcoming book Drupal Multimedia, to be published in September, goes into some detail about how this can already be done, to create powerful video and audio playlists.)
I made an official release for the jQuery Media module. This is a wrapper for the jQuery Media plugin. I have made this a full featured module, an aid for developers and themers. We are using it for the audio clips of Air America Radio.
From its help page:
The jQuery Media plugin will turn links to media into their embedded media equivalents, or into a modal overlay embedding the media when the link is clicked. Installing and configuring the module is only the first step: you must also manually theme the output of links in order to enjoy the benefits of this plugin.
Theming is outside of the scope of this help page. You might look at Drupal's Theme Developer's Guide for more information. However, once you are ready to theme your elements, you only need to add a class and invoke this plugin. For instance, if you have a File Field with a video, simply use something like the following:
<?php
jq_add('jquery_media');
print l($node->title, $node->field_file_field[0]['filepath'], array('class' => 'media'));
?>You may override the global defaults of this plugin when configuring. Additionally, you may override a global default on a case-by-case basis by including the override in an options array when invoking the plugin. For instance, you might override the background color of players on a specific page with
<?php
jq_add('jquery_media', array('bgcolor' => '#33FF00'));
?>This will override the defaults of the plugin for every media link on that page, which may in turn override those individually (more on that later).
The full array of global overrides are as follows:
Finally, you may override a global setting on an individual basis. The customizations here are extensive, and rather than repeating that here, you are directed to the jQuery Media homepage for more information. As an example, you might set the size of a specific file with the following, while leaving any other jquery media links on the page at their default. (Note that we change the class away from the default 'media' in this example. It also assumes we've already invoked it as above.):
<?php
print l($node->title, $node->field_audio_file, array('class' => 'media-audio')); drupal_add_js("$('a.media-audio').media( { width: 200, height: 15, autoplay: true } )", 'inline');
?>Note that by default, the module will add its default overrides inline. However, you may set it to output them to a dynamic javascript file, and may additionally wish to set the defaults to a static js file, once development is complete. You can alter those settings when configuring the module.
I've just created the jQuery Media and jMedia wrapper modules for those two jQuery plugins. I am excited about both of them, which are similar. I'm already using jQuery Media for the audio player for Air America Radio (to be launched next week), and found out about jMedia today while researching other uses for the plugin.
Basically, these plugins will replace links or other text with Multimedia, automatically compatible with the browser. They both support audio and video, and come packed with cool features that I haven't even finished exploring yet.
I'll show you how it works next week after Air America's launch. But I'll let you know, it's really, really cool. Makes developing multimedia intensive sites super easy. And I'll definitely have to put it in Drupal Multimedia, my book that should be published this summer.
I plan to support one or both of them in Embedded Media Field as well, as it should make theming that easier than it currently is. They both already support jQ out of the box, for easier administration.
And that's just the beginning...
I am trying to understand the demo on: http://drupalhub.org/videos . Does the plugin embedded media field come with that?
I mean instead of 1 Video or few on the page it goes in slideshow fashion.
yeah it would be great if it could work with firefox. Still very nice though.
The media player looks great. Thanks for developing it.
Written for Drupal 6, this book is a comprehensive overview of integrating multimedia into your Drupal-powered web site. With hands-on examples and tutorials, the book is written for site developers, themers, and administrators. The book makes no assumptions about your skill level, although one should probably already have an understanding of Drupal and how to set up and configure a basic site. The book will guide you through its topics, gently moving the reader from basic concepts such as module set-up, to intermediate techniques such as creating views, to advanced methods such as writing jQuery and custom modules.
This is a great book. I have bought it myself and it has taught me a lot.
Drupal is the best open source framework.
Here is a list of the Drupal benefits:
Easy to install - Drupal installation described here;
Easy to use - no programming knowledge needed! Read through this tutorial to learn the basics of Drupal. Spend 2 hours administering your site. After that you will feel very familiar with Drupal;
Lots of features, such as custom search engine friendly URLs(SEF), categories, search function;
Lots of modules to add even more functionality to your site;
Flexibility - you can easily turn your drupal installation into a forum, faq, blog, wiki and many other types of web sites;
Free to use, open source. You can freely install drupal and you can modify the source code to fit your needs, if you want;
Lots of users & community - easy to find solutions to your problems. The large community guarantees that Drupal will have a bright future;