itk-dev / itk_video
Module that provides Video integration
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:drupal-module
pkg:composer/itk-dev/itk_video
Requires
- ext-dom: *
- drush/drush: ^12 || ^13
- psr/cache: ^3.0
Requires (Dev)
This package is auto-updated.
Last update: 2025-10-20 11:20:24 UTC
README
Module that supplies video integration through a dedicated itk_video field type.
- Supports CookieInformation
- Supports Videotool
- Supports Vimeo
How it works
The supported video providers are defined in SupportedVideoProvider.php. The definitions include
- host: Used to identify the provider from the supplied video URL.
- type: Used to determine if videoinformation should be retrieved bu this module (custom) or Oembed
- requiredCookies: The cookies that the provider sets when embedding a video from that provider. See CookieInformation about what categories are used.
If a provider is enabled in the module settings videos from this provider are displayed.
How to use
The module includes a permission to access the configuration page: "Administer ITK Video settings"
If allowed access the settings are set on /admin/config/media/itk-video
.
Settings include:
- Respect limitations provided by cookieinformation.com
- Enable/disable supported video providers
Code
To check coding standards run the following commands:
Install dependencies:
docker compose run --rm phpfpm composer install
Check composer and security updates:
docker compose run --rm phpfpm composer normalize --dry-run docker compose run --rm phpfpm composer audit
Check assets:
docker compose run --rm prettier 'css/**/*.css' --check
Check php, code sniffer and code-analysis:
docker compose run --rm phpfpm vendor/bin/phpcs ./scripts/code-analysis
Check markdown and yaml:
docker compose run --rm markdownlint markdownlint '**/*.md' docker compose run --rm prettier '**/*.{yml,yaml}' --check