oembed_formatter_plus
3 sites
No security coverage
oEmbed Formatter Plus
This is a slightly enhanced version of the core "oEmbed Formatter" field formatter.
Features
This formatter add a few options to the original:
- disable the iframe that wraps the embedded content for "trusted providers".
- alter the inner and outer iframe titles.
The responsive video styling improvements from Video Embed Field are included.
Requirements
This module requires no modules outside of Drupal core.
Installation
Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.
Configuration
This module works with Media Types with a "Remote video" Media source. The core media module must be enabled. For more information about media types see Creating and configuring Media Types
- Go to Structure -> Media Types and select a media type (with a "Remote video" source).
- Go to "Manage Display" tab and change "Format" of the Video URL field to "oEmbed formatter plus content".
- Configure options (If you are using the Claro admin theme, click the gear)
- Add providers you "trust" to the Trusted Providers field; example: "YouTube; Vimeo"
- If you have videos from providers that are not "Trusted", you may want to update the iframe title related options.
- The "Include inner iframe" title is enabled by default; if you want the outer title to include the inner title frame, leave this enabled.
- The "Outer iframe title" value is prepended to the text from the inner iframe title. note when the "Include inner iframe" option is disabled, this becomes the title. (it is not recommended to use this option if your site has pages with multiple videos on a page as it negatively impacts screen reader users)
- Click the Save button.