Video

Overview

This component gives you the ability to embed either a Wistia or YouTube video into your page. Wistia is the preferred hosting method as we are moving away from YouTube. Videos can be configured to auto-play on page load, or upon scrolling to that area of the page. They can also be set to play only upon activation by the user. Additionally, the Video can be placed within the modal.

Examples

Wistia variation

Example
 
<div class="video" data-myob-video-wistia data-video-id="z8th6x33vk">
  <div class="wistia_embed wistia_async_z8th6x33vk seo=true videoFoam=true slientAutoPlay=true wmode=transparent">&nbsp;</div>
</div>

Youtube variation

This variation is to be deprecated and moved to an embed model

Example
<div class="video" data-myob-video-youtube data-video-id="-cd6DIM-fQM">
  <div id="-cd6DIM-fQM"></div>
</div>

Square variation

Example
 
<div class="video video--square" data-myob-video-wistia data-video-id="ixzmfjfsv3">
  <div class="wistia_embed wistia_async_ixzmfjfsv3 seo=true videoFoam=true slientAutoPlay=true wmode=transparent">&nbsp;</div>
</div>

Usage guidelines

Dos Donts
do iconTo adhere to accessibility best practices, do provide a closed caption transcript where possible.
do-not iconAvoid configuring the video to auto-play, unless in specific circumstances, as it can create an unpleasant user experience.
do iconDo choose a suitable frame for your preview state.

Implementation guidelines

Name Class Attribute Description
Aspect ratio .video--square Change the aspect ratio of the Video. Default is 16:9.
Autoplay ?video-auto-play= Autoplay a video on page load. Append this query parameter with the Video ID to the end of the URL. Can be used in conjunction with auto open Modals and seek to Videos.
Seek to ?video-seek-to= Seek to a specific point in a video on page load. Append this query parameter with the Video ID and seek to time to the end of the URL. Accepts multiple Video IDs, seperated by commas, e.g. ?video-seek-to=
VIDEO_ID:SEEK_TIME,
VIDEO_ID:SEEK_TIME
. Can be used in conjunction with autoplay Videos.
Autoplay on screen enter .waypoint Autoplay a video on scroll to position and Video entres the window. Apply to containing element.