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

              
                  <!-- 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>

  <div class="partial">

    <!-- 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>
              
            
!

CSS

              
                    .partial{
      max-width:50%;
    }
              
            
!

JS

              
                    window.onVidyardAPI = (vidyardEmberd) => {
      vidyardEmbed.api.addReadyListener((_,player) => {
        console.log('player ready:', player.ready());
        var players = VidyardV4.players;
        //eventID can be found from the url of the event edit page
        //start is in seconds
        //duration is in seconds *used with annotations*
        //chapterIndex is which video in a set playlist you wish to attach to
        const objectOptions = { eventId: 110331, start: 0, duration: 4, chapterIndex: 0 };
        players[0].addEvent(objectOptions);
      },)
    }
              
            
!
999px

Console