Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <html>
<head>
  <style>
  .partial{
    max-width:640px; font-family:sans-serif;
  }
  </style>
  <!-- The script tag should live in the head of your page if at all possible -->
  <script type="text/javascript" async src="https://play.vidyard.com/embed/v4.js"></script>
  <script type="text/javascript">
  window.onVidyardAPI = (vidyardEmberd) => {
    vidyardEmbed.api.addReadyListener((_,player) => {
      console.log('player ready:', player.ready());
      console.log(player.uuid);
      var players = VidyardV4.players;
      players[0].on("play",function(){
          var date = Date.now();
          /*update the release date for your event below*/
          const liveDate = new Date('January 25, 2021 12:20:00 GMT-05:00').getTime();
          /*determine the difference in current time and posted time then seek to the appropriate playback point*/
          var delta = (date-liveDate);
          players[0].seek(delta/1000);
          players[0].on("seek",function(){
          var current = players[0].currentTime();
          console.log(current);
          })
      });
    },)
  }
  </script>
  </head>
  <body>
    
    <div class="partial">
      <h3>This code takes a custom "Live Date/Time" (set on line 19) and seeks to a playback point releated to that in the video. This creates a simulive experience. <br/>Player controls for skipping ahead and back will not work and have been turned off.</h3>
  <!-- Put this wherever you would like your player to appear -->
  <img
  style="width: 100%; margin: auto; display: block;"
  class="vidyard-player-embed"
  src="https://play.vidyard.com/dky8RTAK4UQ1MbQqAUm8QZ.jpg"
  data-uuid="dky8RTAK4UQ1MbQqAUm8QZ"
  data-v="4"
  data-type="inline"
  data-hidden_controls="1"
  />
</div>
<!-- Functional extensions include using the .addEvent method from https://knowledge.vidyard.com/hc/en-us/articles/360019034753-Using-the-Vidyard-Player-API to add a lead capture at seek point +1 second, and error handling for joining a video before it begins or after it ends-->
  </body>
</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console