Panopto videos can now be embedded in Moodle in the 16:9 format. The default size of such videos has been increased to 720 x 405 px, which is often too wide for the content area in the three-column course template used at Royal Holloway. This results in an oversized thumbnail and a horizontal scroll bar. Yuk.

Example of badly embedded video, showing cut off content and horizontal scrolling.
Video embedded with default settings.
Note: content cut off on right handside, viewer tools not all visible and a horizontal scroll bar.

One alternative is to resize the embedded video. This requires some potentially tricky arithmetic in order to retain the 16:9 ratio. Harder still is working out the optimum size for all your learners (hint: there isn’t one, as a fixed size will work better in some devices than others).

There is a quick, non-numerically challenging yet highly effective method by which embedded videos will respond to your learners’ devices and resize appropriately, without distorting the dimensions of the video or requiring horiontal scrolling.

Firstly, embed the video in the normal way, you may find this short video useful if you havent done this before. Then you need to edit the code:

  1. Click the Edit link for the Label in which the video is embedded
  2. Expand the editing menu
  3. Switch to code view
  4. Scroll down to Line 6 and replace the opening tag, <div> with <div class=”responsive-video”>
  5. Click the Save and return to course button

Your video will now respond to the device screen sizes used by your learners.

Example of responsively embedded video, showing full content, viewer tools and no horizontal scroll bar.
Video embedded with responsive tag.
Note: widescreen ratio supported, all viewer tools visible and no scrolling required.

Posted by Martin King

Senior Learning Technologist; MOOC Producer; Moodle, Turnitin, Grademark, Peermark, Panopto, Turning Technologies expert.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.