DMI Services: Drupal Modules

Currently, two different Drupal modules are available from DMI to allow for easy embedding of OIT Media Repository video content into Drupal website pages.  Both plugins are considered beta level products and very limited support is available for them. That said, those who manage Drupal based websites on campus are welcome to test out either module and send us feedback on how well they work.

Drupal 7 Module

This module was originally written by OIT Digital Media Initiatives to provide very basic Drupal 7 support for the JW Player video embedding module.  The current version (0.0.8a) supports JW Player version 6 and has a fix for Safari browsers when you are using the GT Theme.

  • Installation:
    1. Download the module and unpack into your custom Drupal modules directory ( sites/all/modules/ ) on your webserver.
    2. Login to your Drupal website as an administrator and navigate to the Modules configuration page.
    3. Find the JW Player Embed Filter entry under the Input Filters section, and enable the module.
    4. Navigate to the Text Formats configuration page and enable the filter for each text format with which you want the filter to work.  Note: the filter MUST be last filter in the Filter processing order table - otherwise, other filters will likely mess up the Javascript code that the filter is attempting to insert into the page code.
  • Usage:
    1. After installing the module and adding it to at least one Text Format, you can immediately begin using it on any node editing page that works with that Text Format.  Select the appropriate Text Format for which you enabled the plugin, then in your node's content area, just enter the following tag (without any spaces between the square brackets and the text inside the tag) at the place where you want a video to appear:

      [ jwplayer|zone=ZONEID|subzone=SUBZONEID|file=FILENAME ]

      Be sure to replace ZONEID, SUBZONEID, and FILENAME with the actual IDs and filename of the file you wish to embed (IDs and filenames are case sensitive, and filenames must be specified including their file extension).

    2. Save your content and view (or preview) the page, and you should see your embedded video.
    3. You can place multiple videos on one page simply by inserting multiple tags, but beware that the more videos you embed, the more likely you are to have users encounter browser-related troubles. Our recommendation is to put no more than three videos on a single page for best results.
    4. Two advanced options are supported for controlling the size of the video window. You can add either or both of the following after the filename, separating them with pipe (|) symbols:

      width=XXX
      height=YYY

      Be sure to replace XXX and YYY with the width and height for the video window (Note: XXX and YYY are specified in pixels with no unit extension.)

Drupal 6 Module

This module was originally written by Longtail Video to provide Drupal 6 support for the JW Player video embedding module that they produce.  DMI has extended this plugin to use a simplified tag structure that is based on the organization of files in the OIT Media Repository.

Note: The Drupal 6 module does not embed the code necessary to support non-Flash players (e.g. Apple iOS portable devices). The Drupal 7 module below does support both formats.

  • Installation:
    1. Download the module and unpack into your custom Drupal modules directory on your webserver.
    2. Login to your Drupal website as an administrator and navigate to the Modules configuration page.
    3. Find the JW Player Module entry under the Media section, and enable the module.
    4. That's it! There is a configuration page, but you shouldn't need to do anything with it unless you are looking to get into advanced usages of the plugin.
  • Usage:
    1. After installing the module, you can immediately begin using it on any node editing page. In your node's content, just enter the following tag (without any spaces between the square brackets and the text inside the tag) at the place where you want a video to appear:

      [ jwplayer|zone=ZONEID|subzone=SUBZONEID|file=FILENAME ]

      Be sure to replace ZONEID, SUBZONEID, and FILENAME with the actual IDs and filename of the file you wish to embed (IDs and filenames are case sensitive, and filenames must be specified including their file extension).

    2. Save your content and view (or preview) the page, and you should see your embedded video.
    3. You can place multiple videos on one page simply by inserting multiple tags, but beware that the more videos you embed, the more likely you are to have users encounter browser-related troubles. Our recommendation is to put no more than three videos on a single page for best results.
    4. There are some advanced options to control the size and appearance of the video window. To learn more about these options, please see Longtail's plugin documentation.

The video shown below was embedded using the Drupal 7 Module

Loading the player ...