Embedding Viostream Videos in Drupal/GovCMS
Learn how to install and use the Viostream plugin for Drupal or GovCMS. Browse, select, and embed videos from your Viostream account.
1. Installing the Viostream Plugin
The Viostream module integrates your Drupal or GovCMS website with your Viostream account, providing a seamless media embedding experience.
Requirements
- Drupal 10 or 11
- Access to your Viostream account (API credentials required)
- Field, Filter, and CKEditor modules enabled in Drupal
Installation Steps
Option A: Composer (Recommended)
composer require viostream/drupal-viostream-plugin
Option B: Manual Installation
- Download the module from GitHub or Packagist.
- Extract it into your Drupal site's
modules/contribdirectory. - Enable the module via:
drush en viostream- or Admin → Extend → Enable “Viostream”
Configuration
- Go to Admin → Configuration → Media → Viostream Settings (
/admin/config/media/viostream). - Enter your Access Key (
VC-...) and API Key from Viostream Developer Tools. - Click Test Connection to verify credentials.
- Click Save configuration when successful.
Tip: Credentials are stored securely in Drupal configuration.
2. Embedding Videos in Drupal Content
You can embed Viostream videos using one of three main methods:
A. CKEditor 5 Inline Embed (Best for rich editors)
- Enable Video Embed Filter:
- Go to: Admin → Configuration → Content authoring → Text formats and editors
- Edit your text format (e.g. “Full HTML”)
- Under Filters, enable Viostream Video Embed
- Save
- Add Toolbar Button:
- On the same page, in CKEditor 5 Toolbar
- Drag the Viostream Video button to the toolbar
- Save
- Embed Videos:
- Edit content and click the Viostream Video toolbar button
- Browse/search your Viostream library in the modal, pick a video, insert it
- The video embed appears as a widget in the editor
B. Media Browser Widget Field
- Add a Link Field:
- Admin → Structure → Content types → [Your Type] → Manage fields → Add field → “Link”
- Name it (for example, “Viostream Video”)
- Switch Widget to Viostream Browser:
- Go to: Manage form display for that content type
- Set your video field’s widget to Viostream Browser
- Save
- Configure Display Formatter:
- Go to: Manage display for content type
- Set the field's formatter to Viostream Video (click settings for options)
- Add and Embed a Video:
- Edit/add content, click Browse Viostream
- Select a video from your library or enter a sharing URL
- Save
C. Manual Link Entry
- Add a “Link” field as above.
- Enter a valid
https://share.viostream.com/{VIDEO_ID}link in your content. - In display settings, select Viostream Video formatter for that field.
3. Standalone Media Library Browser
Browse all videos in your media library at:
- Admin → Content → Browse Viostream Media (
/admin/content/viostream/browse)
4. Troubleshooting & Tips
- Verify API credentials with the Test Connection button.
- The Browse Viostream button only appears if the Viostream widget is enabled.
- User permissions for Viostream media browser are required.
- Enable “Responsive” in player settings for mobile-friendly video embeds.
5. Further Information
For support, contact your Viostream admin or log an issue on GitHub.