Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Youtube duration

Security covered Under active development 374 sites

Part of the Youtube ecosystem · 10 projects

This module automatically populates a duration field for YouTube video media entities by querying the YouTube API. It overcomes the limitation of oEmbed not providing video duration by directly fetching this information.

This module allows a Drupal duration field on a oEmbed video media entity to be filled by querying the Youtube API.

The duration of a Youtube video cannot be accessed via oEmbed. This is where this module comes in and provides duration by querying the Youtube API. The module relies on a Drupal duration field for storing the duration information and a Youtube/Google API key is needed to query the Youtube API.

Installation

  • install the module as usual
  • Add a duration field to your oEmbed media entity
  • Configure your oEmbed media entity to use this duration field to store the duration information (you will also need to put Youtube/Google API key in)
Drupal 8–11

Ask your assistant about Youtube duration

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • duration_field Drupal core
  • media Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Nov 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.1.0 Stable 8–11 Nov 6, 2024