code

an a-player embed

a custom video-player element supplied with a stream, a poster image, and a caption file.

html

<script src="//content.jwplatform.com/libraries/IDzF9Zmk.js"></script>
<script src="//unpkg.com/@webcomponents/webcomponentsjs@2.0.0/webcomponents-bundle.js"></script>
<script src="//unpkg.com/@edwardsharp/a-player@0.0.5/dist/main.bundle.js"></script>
<a-player
  height="225"
  width="400"
  file="https://player.vimeo.com/external/274956993.m3u8?s=b1d06838d9eb645d303020011d447c8fe69acf72"
  image="https://i.vimeocdn.com/video/707121198.webp"
  captions-file="https://edwardsharp.github.io/a-player/How_do_I_answer_and_end_calls.vtt"
></a-player>

css

  background: #0095D6;
      color: white;
    }
    .transcript span:not(.current):hover {
      color: #0095D6;
    }
    .searchbox input {
      border: thin solid gray;
    }
    /* search results */
    .transcript span em.current {
      background: red;
      color: white;
    }

css snippet could not be formatted; original code is shown

this demo preserves the compiled output and may depend on external libraries or services that are no longer available.

original jsfiddle post