Black Friday sale: 25% off your first year on annual plans. Ends Dec 6. Start your trial

Setup & Installation

Install SmartVideo on MasterStudy LMS

Updated October 19, 2026

MasterStudy LMS is a WordPress LMS plugin for building and selling courses. MasterStudy’s Video lessons have a Shortcode video source, which its documentation describes as a way to “display videos in the lesson content processed by other additional plugins”. You can try the SmartVideo WordPress plugin’s [smartvideo] shortcode there, then preview the lesson to confirm the player appears (Step 3). There’s no MasterStudy-specific add-on or setting on our side.

One limit comes first: MasterStudy’s Required Video Progress and timecodes do not work with the Shortcode source. See the section When lesson completion depends on watching below before you build a course around this.

If you don’t have a SmartVideo account yet, create one at dash.swarmify.com/signup. Once you’re registered, head back here to get set up.

Step 1: Install the SmartVideo WordPress plugin

  1. In your WordPress admin, go to Plugins → Add New.
  2. Search for SmartVideo and install the plugin published by Swarmify.
  3. Activate the plugin.
  4. Copy the API key from the Profile section of the Account page in your Swarmify Dashboard; the plugin calls it the Swarm CDN Key.
  5. From the WordPress admin sidebar, click SmartVideo, paste your unique Swarm CDN Key into the field on the Setup tab, and click Enable SmartVideo.

The plugin handles the JavaScript snippet for you, so you don’t need to paste anything into your theme header. For more on this step, see Install SmartVideo on WordPress.

Step 2: Turn on the Shortcode video source

MasterStudy’s documentation says video sources are enabled first under MS LMS > Settings > Course. The sources it lists are HTML (MP4), YouTube, Vimeo, External Link, Embed, Shortcode, plus Presto Player (only if that plugin is active) and VdoCipher (only if configured). Enable Shortcode there.

Step 3: Add the shortcode to a Video lesson

  1. Go to MS LMS > Courses, click Add New, fill in the course info, and click Create.
  2. In the Curriculum, click Add lessons and create a lesson. Set Lesson Type to Video.
  3. Choose Shortcode as the video source. A Shortcode field appears.
  4. Paste the SmartVideo shortcode into that field:
[smartvideo src="https://your-video.example.com/file.mp4"]

Replace the src value with the direct URL of your hosted MP4 (your own server, S3, Dropbox direct link, your WordPress Media Library, etc.). Swarmify fetches, optimizes, and delivers it from there.

The source must return the video bytes to an anonymous request, without a login, and remain available for as long as the video is embedded. Do not use an expiring or signed URL.

That source URL is written into your page’s HTML, so anyone viewing your page source can find it. If keeping the original out of reach matters to you, upload the video to your SmartVideo Library and embed the swarmify:// reference instead.

MasterStudy’s documentation only describes this field for the shortcodes of video plugins. We haven’t confirmed that it renders any WordPress shortcode, including [smartvideo]. After you save, preview the lesson as a learner and check that the SmartVideo player appears and plays. If it doesn’t, email support@swarmify.com with the lesson URL and your MasterStudy version.

When lesson completion depends on watching

MasterStudy’s documentation says: “Required Video Progress is available in all video source types except Embed and Shortcode types. They do not function with them, as those methods lack direct access to the video player’s time data, preventing progress tracking.” Timecodes have the same restriction. The Required Video Progress (%) setting keeps a lesson’s Complete button disabled until the learner has watched the threshold you set, and it is documented as a MasterStudy LMS Pro Plus feature.

So a SmartVideo player in the Shortcode source can’t be used for watch-based completion or timecodes. If a lesson needs either, use one of MasterStudy’s own video sources. We haven’t tested SmartVideo with the External Link or HTML (MP4) sources, so this article doesn’t cover them.

Optional shortcode attributes

If you need them, the [smartvideo] shortcode supports the same attributes as the HTML tag:

[smartvideo src="https://your-video.example.com/file.mp4"
            poster="https://your-video.example.com/cover.jpg"
            controls="true"]

Supported attributes: poster, width, height, aspect_ratio, responsive, autoplay, muted, loop, controls, playsinline, preload.

What happens after I install?

The first time a lesson loads, Swarmify fetches your source MP4 and starts re-encoding it for optimized delivery. This usually takes about as long as the video runs, so a 10-minute lesson video takes about 10 minutes. While it’s processing, the player still works - it just serves the original until the optimized version is ready.

If a lesson video doesn’t appear after publishing:

  • Make sure the src URL points to a direct video file (.mp4, .webm, etc.), not a YouTube or Vimeo page URL.
  • Check that the SmartVideo plugin is activated and connected under SmartVideo in your WordPress admin sidebar.
  • Confirm that Shortcode is enabled under MS LMS > Settings > Course and selected as the lesson’s video source.

MasterStudy’s lesson documentation is at docs.stylemixthemes.com. The labels above come from it; your installed version may word them differently.

Hosting course video? See the LMS video hosting overview.

Keywords: masterstudy, masterstudy lms, stylemix, lms, course, lesson, shortcode, [smartvideo], wordpress lms, online course

Get SmartVideo live on your site

Set it up on WordPress, Shopify, Squarespace, or any platform in a few minutes.

14-day free trial · Card required, no charge until day 15