How to Integrate Boomstream with Moodle: Video Protection and Dynamic Watermarks
The Boomstream plugin for Moodle protects your videos and live streams from unauthorized downloading and displays unique, dynamic watermarks with the viewer's personal data during playback.
The plugin is free and open source: github.com/boomstream-com/boomstream-moodle.
How the Integration Works
- A student opens a lesson in Moodle.
- The plugin detects the Boomstream player on the page and securely transmits the student's data to Boomstream.
- When the student clicks "Play", the player authorizes them automatically.
- The player overlays watermarks displaying the student's email, full name and device IP address.
Requirements
- Moodle 3.9 or later (tested up to Moodle 5.3);
- a Boomstream account with video protection enabled;
- outbound HTTPS access from the Moodle server to the player domain (
play.boomstream.netby default); - every student must have an email address in their Moodle profile.
Part 1: Configuration in Your Boomstream Account
1. Create Password Access
Navigate to the Password Access section and create a new access rule.
Note: You must fill out the Seller Contacts field before proceeding. This data is required by the system for internal processing and will not be displayed to viewers.

2. Configure Access Parameters
After entering the contact data, click Create Password Access. In the configuration window, set the following parameters (these are visible only to you):
| Field | Recommended Setting |
|---|---|
| Name | Any descriptive name (e.g., "Moodle Course Access") |
| Access End Date | 01/01/2099 (or your desired expiration date) |
| Number of Password Activations | 10000 (or higher, depending on student count) |

Click Create to open the password access card.
3. Enable Dynamic Watermarks
Navigate to the Security tab within the access card and activate the Show Watermarks option. Configure the settings:
- Show watermark in player: check this box.
- Show buyer's email as a watermark: check this box.
- Show buyer's IP as a watermark: check this box.
(Optional) You can also activate Prevent Simultaneous Viewing. When enabled, a user cannot watch the video from multiple devices under the same account at the same time.

You can further customize the appearance of the watermarks in the dedicated settings menu.

4. Add Videos to the Access Rule
In the Media tab, click Add, select the media type and choose the videos from your library.


5. Get the Player Embed Code
Go to the Player Publishing tab and copy the JavaScript (JS) embed code. Instead of the code you can use a short shortcode, see Adding Videos to a Course.

Part 2: Plugin Configuration in Moodle
1. Install the Plugin
- Download the ZIP of the latest version from the GitHub releases page: Download the plugin (the
filter_boomstream_moodle39_….zipfile under Assets). - In Moodle, go to Site administration → Plugins → Install plugins, drop the archive into ZIP package and click Install plugin from the ZIP file.
- Confirm the installation and the database upgrade.
Already have the plugin? Install the new version the same way, over the old one: your settings are kept.
2. Enter Integration Credentials
Open Site administration → Plugins → Filters → Boomstream video platform and fill in three parameters:

| Parameter | Description & How to Find It |
|---|---|
| Hostname | Your player's domain. The default is play.boomstream.net. If you use your own video domain, enter it here. |
| API Key | Found in Boomstream under Project Settings (gear icon) → CMS Integration tab. Recommendation: create a dedicated API key for Moodle with the type "for writing". |
| Subscription code | The code of the Password Access rule you created in Part 1. Open the access rule and copy the code from the Information tab. |


Save the settings.
3. Enable the Filter
Go to Site administration → Plugins → Filters → Manage filters (/admin/filters.php) and set Boomstream video platform to On.
Without this step Moodle does not pass pages to the plugin: the player is shown, but the student is not authorized and no watermarks appear.

Adding Videos to a Course
Use one of the options in any text element of a course (page, lesson, assignment description).
Option 1. Boomstream embed code. Paste the code copied in Part 1, step 5, into the editor in HTML mode. The plugin finds the player on the page automatically.
Option 2. Shortcode. Type a single line as plain text, no HTML mode required:
[boomstream media[Am0TlUow]]
where Am0TlUow is the Boomstream media code. Optional parameters:
| Parameter | Description |
|---|---|
media[…] |
Media code. Required. |
size[800x450] |
Player size, 640x360 by default. |
mode[adaptive] |
Adaptive player that fills the width of the column. In this mode size sets the maximum width. |
subscription[…] |
Code of another password access rule, if the video belongs to a rule other than the one set in the plugin settings. |
Example: [boomstream media[Am0TlUow] mode[adaptive] size[800x450]]
✅ Done!
Once configured, the plugin automatically and securely transmits student data to the Boomstream player. During playback, dynamic watermarks with each viewer's personal data are displayed, protecting your educational content.
FAQ
The watermark does not appear. What should I check?
- The filter is enabled in Manage filters (Part 2, step 3).
- Show Watermarks is on in the Security tab of the access rule.
- Hostname, API Key and Subscription code are correct in the plugin settings.
- The API key type is "for writing".
If everything looks right, turn on Debug mode in the plugin settings and open the lesson as an administrator. The page source will contain a comment with the plugin trace (players found, API calls and responses; the API key is masked). Send it to support and turn debug mode off afterwards.
Do students need a separate password to watch videos?
No. The plugin passes student data from Moodle to Boomstream automatically; the video plays right after the lesson opens.
Can one access rule be used for several courses?
Yes. Add any number of videos to one rule and use it for all your Moodle courses. To split videos between rules, put the rule code into the shortcode: subscription[…].
Does it work with a custom player domain?
Yes. Enter your domain in the Hostname field. The plugin rewrites the domain in players that are already embedded (including play.boomstream.com and play.boomstream.net), so you don't need to edit your lessons.
My lessons contain players embedded from play.boomstream.com. Do I need to change them?
No. The plugin recognizes both domains and uses the one set in the Hostname field.
My Moodle is older than 3.9.
Current versions require Moodle 3.9 or later. For Moodle 3.4–3.8 use the legacy version. It gets no updates and does not support shortcodes. Do not turn on Debug mode in it: the legacy version shows debug output, including the API key, to every visitor of the page.
What data does the plugin send to Boomstream?
Only the student's email and a technical identifier (Moodle site address, user ID and media code). No course content or other personal data is sent; the plugin stores nothing in the Moodle database.
Where can I get help?
Contact Boomstream support: support@boomstream.com. Plugin bugs can also be reported on GitHub: Issues.
