Kaltura Media Fields for the Drupal Video Module

Kaltura integrates with Drupal 7 at a field level, providing the granularity for integration with a variety of Drupal implementations. . As other fields in Drupal, the Kaltura Media Field may be added to content types, comments, user profiles and all other types of blocks of content.

The Kaltura Media field may be configured to allow certain media types (i.e. video, audio, image), for different display options, and for different media contribution options. These configuration options synergize with Drupal’s innate field and content types configuration, like permissions and displays, and together enable easily building of media use-cases that apply to you.

Using the Kaltura Media Field in a Content Type

This section contains the following topics:

Adding the Kaltura Media Field

Configuring Settings for the Kaltura Media Field

This section describes the options and settings for the Kaltura Media field. All Kaltura features such as setting the conversion profile and CDN configuration work for out of the box and can be set within the Kaltura Management Console. See the KMC User Manual for more information.

Kaltura Media Field Contribution Elements

You can define two types of contribution elements for the Kaltura Media field:

Widget Types

The widget determines the types of media you can propagate to the Kaltura Media field. This applies to both uploading new content from the Kaltura Contribution Wizard and re-using existing content. The following lists the types of widgets that you can set for a Kaltura Media Field.

  • Video Only – allows you to upload only videos through the Kaltura Contribution Wizard. Use only when the Add Media Settings are set to Add new media.
  • Audio Only - allows you to upload only audio files through the Kaltura Contribution Wizard. Use only when the Add Media Settings are set to Add new media.
  • Image Only - allows you to upload only image files through the Kaltura Contribution Wizard. Use only when the Add Media Settings are set to Add new media.
  • All Media Types - allows you to upload all three types of content, video audio,  and image through the Kaltura Contribution Wizard
  • Webcam – allows you to record from webcam only. Note that when using this type of widget it is recommended to set the field to “add new media” only, for obvious reasons.

Add Media Settings

The Add Media Settings options are dependent on the widget type selected when you define the Kaltura Media field. The following settings are available:

  • Add new media only - allows you to upload new media only
  • Use existing media only - allows you to choose from uploaded and synced content only
  • Use existing media and add new media – allows you to upload new media and choose from existing uploaded content

When you add new media, content is uploaded to your Kaltura account as well as synced to the Drupal database

Video Only

To configure the Kaltura Media Field settings for the video only widget

  1. In the Manage Fields tab, click on edit in the Operations column.
  2. Configure the following field settings:
    PLAYER SETTINGS
    THUMBNAIL SETTINGS
    CONTENT INGESTION 
  3. Click Save field settings.

PLAYER SETTINGS

Audio Only

To configure settings for the audio only widget

  1. In the Manage Fields tab click on edit in the Operations column.
  2. Configure the following settings as for video only:
  3. Click Save field settings.

Image Only

To configure settings for the image only widget

  1. In the Manage Fields tab click on edit in the Operations column.
  2. Configure the following settings as for video only:
    • Image settings
  3. Enter the Image width.
    Enter the Image height.
  4. Click Save field settings.

All Media types

To configure settings for the all media types widget

  1. In the Manage Fields tab click on edit in the Operations column.
  2. Configure the following settings as for video only: 
  3. Click Save field settings.

Webcam

To configure settings for the webcam widget

  1. In the Manage Fields tab click on edit in the Operations column.
  2. Configure the following settings as for video only:
  3. Click Save field settings.

Managing the Content Type Display

You can change the display of the configured fields from the default, for each instance of the field and for each different custom display.

To manage the Kaltura Media field display

  1. Select the Structure tab and then select Content Types.
  2. Select the content type you want to configure.
  3. In the Operation column, click manage display to configure the display/format options.
    • Choose the Drupal Label from the dropdown menu. Select Above, Inline or Hidden.
    • Choose the  Display format option for the Kaltura Media Field. For example, the options for video are as follows:
       
  4. Customize your display (optional).
  5. Click Save.

To customize the display for a specific instance of the field

  1. Select the Structure tab and then select Content Types.
  2. Select the content type you want to configure.
  3. In the Operation column click manage display to configure the display/format options.
  4. Click Customize Display Settings and check the settings you want for you display modes.
    The options you select, for example, Teaser, RSS will be displayed in the manage display screen for further customization. 
  5. Click on the Display mode, for example, Teaser, and then click the  icon to open the instance specific customization fields.
     
  6. Customize the fields.
  7. Click Update.

Populating Kaltura Media Fields with Content

After a Kaltura Media Field is created in a content type, each time content of this type is created, the content editor can populate the field with content.

To populate the Kaltura Media field

  1. Select Content and then select Add Content. The label you defined for each Kaltura Media Field is displayed.
  2. Click the relevant label.
    The options to add content for the specific field are dependent on the type of Add Media Settings that were set for the field. See Add Media Settings.
    • If you selected Add new media, the content editor will only be able to upload new media to populate the field.
    • If you selected Use existing media only, the content editor will not be able to upload new media content.
    • If you selected Use existing media and add new media – the content editor will be able to upload new media as well as choose from existing uploaded content
      The following example displays a label created for adding new and existing media.
      Add Media Use existing media and add new media
       
  3. The label “Add New” (highlighted in the screenshot) appears only when the field is configured to Add new media. Clicking Add New initiates the Kaltura Contribution Wizard flow. See Adding Media through the Kaltura Contribution Wizard
  4. To sort the content, click on the column table headings for Title and Created By.
  5. To search through your media content, enter a text string and click Apply.
    If you selected more than one media type, you can filter the type of content for your search by using the check boxes.
  6. After you select/find the media that you want to use in this specific content, click Insert.
    In the create/edit Content type page, the selected content is displayed as you specified in the display format. 

    To remove the content for the Kaltura Media field for a video, click on the red x.

  7. Click Save.
    After you save the content, the content is displayed as defined in the field display settings. See Managing the Content Type Display.

Adding Media through the Kaltura Contribution Wizard

When adding new media, Kaltura Contribution Wizard (KCW) widget is used. The options available on the KCW depend on the widget type selected for the field.

  • If you selected ‘Video only widget’, only the Video tab will be available.
  • If you selected ‘Audio only widget’, only the Audio tab will be available.
  • If you selected ‘Image only widget’, only the Image tab will be available.
  • If you selected ‘All media types widget’, all three tabs will be available.
  • If you selected Webcam widget, only the Webcam option within the Video tab will be available.

The following example describes how to contribute media using the Kaltura Contribution Wizard to populate a Kaltura Media Field in the Drupal site.

To contribute media using the Kaltura Contribution Wizard

  1. Depending on the options you selected for widgets and adding media, the Kaltura Contribution Wizard is displayed.
     
  2. Select the type of content and source using the different tabs and options.
    In this example, a video file is used as the sample to upload.
     
  3. Press ‘Upload!’ to upload the content to Kaltura.
  4. Fill in metadata for the content.
     
  5. Press ‘Next’ to finish the process.
In This Article