url_to_video_filter
Overview
This module allows users to paste a URL from various video sharing websites, and upon submission replaces the URL with the video from that URL. The module does this by creating a new text filter, that can be added to any input format (such as Full HTML or Limited HTML). It works much the same as the Convert URLs into links text filter that ships with core, however instead of converting URLs to links, it instead converts the URLs into embedded videos.
Supported Services
Currently this module supports the following services:
- YouTube
- Vimeo
Please open a feature request in the support queue for other services.
Configuration
- Install the module as you would any module
- Edit or create a new text format at
/config/content/formats - Check the Convert URLs to embedded videos checkbox
- Select the video sharing services you wish to enable in the settings form
- If you have enabled the 'Convert URLs into links' filter, ensure that this filter comes before it
- Create an entity with a text field that uses this filter, and paste a YouTube or Vimeo URL directly into the body and save, and the URL will be replaced with the given video. URLs with query strings are supported.
Troubleshooting
If the video is not rendering, you may have to work with changing the order of the filters within the text format. For example, "Limit allowed HTML tags and correct faulty HTML" if enabled must come before "Convert URLs to embedded videos".
Development Roadmap
At this moment, nothing is planned. If you have support requests, please open an issue in the issue queue. New services will be added if they have an API allowing for videos embedded from their service.