Caltech Library logo

DOI Video player

The DOI assigned via CaltechDATA repository can include media elements such as videos. The CL.js JavaScript library makes it easy to embed those videos in your own website.

Example embedded media player

DOI: 10.22002/D1.1281 Video is the first item in the media list.

Example JavaScript

    <script src="https://feeds.library.caltech.edu/scripts/CL.js"></script>
    
    <script>
    /* Get the info we need to embed */
    let div = document.getElementById("video-demo");
    
    /* Embed our video with element, doi and item number */
    CL.doi_video_player(div, '10.22002/D1.1281', 0);
    </script>