Video Player

Purpose

Use videos to provide marketing or support information best explained dynamically or using animation.

Requirements

The DLS video component requires both dls.css and dls.js due to the complexities involved with its logic, functionality, and animations.


Usage

There are three variations of videos: headline video, feature video, and support video. Interactions and animations remain consistent across the variations. Include a caption file with all video assets for accessibility.

Support Video


Example - Support Video

<div class="row">
    <div class="col-xs-12 col-sm-6 col-md-4">
        <div data-toggle="video" class="video">
            <video controls poster="../../assets/img/visuals/components/videos/poster.jpg" aria-labelledby="support-video-title">
                <source src="../../assets/img/visuals/components/videos/introducing-amex-apple-pay.mp4" type="video/mp4">
                <track kind="descriptions" label="English captions" src="../../assets/video/video.vtt" srclang="en" default="">
                <track kind="captions" label="English captions" src="../../assets/video/video.vtt" srclang="en" default="">
            </video>
        </div>
        <div>
            <h3 class="heading-4 margin-t margin-1-b dls-deep-blue" id="support-video-title">Protection and Rewards as you shop? Simple.</h3>
            <p class="body-1">Apple Pay is a new way to pay in-store with a compatible* Apple device. Now you can use it with your eligible American Express Card. 
                Rewards available on eligible cards. Conditions apply. Available on eligible cards and devices. Eligible cards are active American Express Consumer,
                Small Business or Corporate Cards (excluding Corporate Purchasing Cards and Corporate Meeting Cards) issued by Amex Bank of Canada.
                Prepaid cards and products (such as the American Express Gift Card) are not eligible.</p>
        </div>
    </div>
</div>

Support Video

Example - Support Video

<div class="row">
    <div class="col-xs-12 col-sm-6 col-md-4">
        <div data-toggle="video" class="video">
            <video controls poster="../../assets/img/visuals/components/videos/poster.jpg" aria-labelledby="support-video-title">
                <source src="../../assets/img/visuals/components/videos/introducing-amex-apple-pay.mp4" type="video/mp4">
                <track kind="descriptions" label="English captions" src="../../assets/video/video.vtt" srclang="en" default="">
                <track kind="captions" label="English captions" src="../../assets/video/video.vtt" srclang="en" default="">
            </video>
        </div>
        <div>
            <h3 class="heading-4 margin-t margin-1-b dls-deep-blue" id="support-video-title">Protection and Rewards as you shop? Simple.</h3>
            <p class="body-1">Apple Pay is a new way to pay in-store with a compatible* Apple device. Now you can use it with your eligible American Express Card. 
                Rewards available on eligible cards. Conditions apply. Available on eligible cards and devices. Eligible cards are active American Express Consumer,
                Small Business or Corporate Cards (excluding Corporate Purchasing Cards and Corporate Meeting Cards) issued by Amex Bank of Canada.
                Prepaid cards and products (such as the American Express Gift Card) are not eligible.</p>
        </div>
    </div>
</div>

Headline Video

Deprecated

Example - Headline Video

<div data-toggle="video" class="video">
    <video poster="../../assets/img/visuals/components/videos/poster.jpg" aria-labelledby="headline-video-title">
        <source src="../../assets/img/visuals/components/videos/introducing-amex-apple-pay.mp4" type="video/mp4">
        <track kind="descriptions" label="English captions" src="../../assets/video/video.vtt" srclang="en" default="">
        <track kind="captions" label="English captions" src="../../assets/video/video.vtt" srclang="en" default="">
    </video>
    <div class="video-overlay">
      <button class="dls-icon-play-circle icon icon-xl icon-hover dls-white" aria-label="play" title="Play"></button>
    </div>
    <div class="video-footer">
      <div class="video-caption hidden"></div>
      <div class="video-controls flex-align-items-center">
        <button class="icon icon-md icon-hover dls-icon-play" title="Play"></button>
        <div data-time>00:00</div>
        <div class="flex-item-grow position-relative">
          <label for="timeline" class="sr-only">Video progess:</label>
          <progress id="timeline" value="0" max="100">0 %</progress>
        </div>
        <div data-duration></div>
        <div class="video-volume">
          <button class="icon icon-md icon-hover dls-icon-sound-on" aria-label="Turn volume on/off" title="Volume"></button>
          <div class="volume-slider">
            <label for="vol" class="sr-only">Volume</label>
            <input
                id="vol"
                type="range"
                min="0"
                max="10" />
          </div>
        </div>
        <button class="icon icon-md icon-hover dls-icon-captions-off" aria-label="Turn caption on/off" title="Caption"></button>
        <button class="icon icon-md icon-hover dls-icon-expand" aria-label="Open/close fullscreen" title="Full Screen"></button>
      </div>
    </div>
</div>
<div>
    <h3 class="heading-4 margin-t margin-1-b dls-deep-blue" id="headline-video-title">Protection and Rewards as you shop? Simple.</h3>
    <p class="body-1">Apple Pay is a new way to pay in-store with a compatible* Apple device. Now you can use it with your eligible American Express Card.</p>
</div>

Feature Video

Deprecated

Example - Feature Video

<div class="row">
    <div class="col-xs-12 col-sm-6">
        <div data-toggle="video" class="video">
            <video poster="../../assets/img/visuals/components/videos/poster.jpg" aria-labelledby="feature-video-title">
                <source src="../../assets/img/visuals/components/videos/introducing-amex-apple-pay.mp4" type="video/mp4">
                <track kind="descriptions" label="English captions" src="../../assets/video/video.vtt" srclang="en" default="">
                <track kind="captions" label="English captions" src="../../assets/video/video.vtt" srclang="en" default="">
            </video>
            <div class="video-overlay">
              <button class="dls-icon-play-circle icon icon-xl icon-hover dls-white" aria-label="play" title="Play"></button>
            </div>
            <div class="video-footer">
              <div class="video-caption hidden"></div>
              <div class="video-controls flex-align-items-center">
                <button class="icon icon-md icon-hover dls-icon-play" title="Play"></button>
                <div data-time>00:00</div>
                <div class="flex-item-grow position-relative">
                  <progress value="0" max="100">
                    0%
                  </progress>
                </div>
                <div data-duration></div>
                <div class="video-volume">
                  <button class="icon icon-md icon-hover dls-icon-sound-on" aria-label="Volume On/Off" title="Volume"></button>
                  <div class="volume-slider">
                    <label for="volume" class="sr-only">Volume</label>
                    <input
                        id="volume"
                        type="range"
                        min="0"
                        max="10" />
                  </div>
                </div>
                <button class="icon icon-md icon-hover dls-icon-captions-off" aria-label="Turn caption on/off" title="Caption"></button>
                <button class="icon icon-md icon-hover dls-icon-expand" aria-label="Expand Full Screen" title="Full Screen"></button>
              </div>
            </div>
          </div>
        <div>
            <h3 class="heading-4 margin-t margin-1-b dls-deep-blue" id="feature-video-title">Protection and Rewards as you shop? Simple.</h3>
            <p class="body-1">Apple Pay is a new way to pay in-store with a compatible* Apple device. Now you can use it with your eligible American Express Card.</p>
        </div>
    </div>
</div>

Functionality

If you are using dls.js, reference the attributes below for functionality.

Attribute Name Options Description
data-time none Displays the current video time on the playhead.
data-duration none Displays the total video duration on the playhead.
data-interval number ranging from 0 to video duration total Increases/decreases the progress by specified interval number.