Skip to main content
Logo image

PreTeXt Sample Book: Abstract Algebra (SAMPLE ONLY)

Section 3.6 YouTube Videos

View Source for section
<section xml:id="videos-in-runestone">
  <title>YouTube Videos</title>
  <p>
    Runestone uses a YouTube API that broadcasts events when a reader interacts with a video.
    In this way, Runestone can record video-watching as an activity.
    As <pretext /> output we concede better behavior on small screens (
    <q>responsiveness</q>
    ) to enable this feature in a Runestone version.
    A <attr>label</attr> attribute is necessary for persistence in the Runestone database.
    Various <pretext /> features,
    such as playlists, are not yet supported<mdash />make a request.
  </p>
  <video xml:id="yt-list-vars" label="youtube-list-vars" youtube="X1-UNHUajfk" width="60%" margins="5% 35%" preview="yt-list-variables.png">
  <title>A List Variable Video</title>
  </video>
  <p>
    The margins here are asymmetric just as a test.
    And this text is here to see where the video ends.
  </p>
</section>
Runestone uses a YouTube API that broadcasts events when a reader interacts with a video. In this way, Runestone can record video-watching as an activity. As PreTeXt output we concede better behavior on small screens ( “responsiveness” ) to enable this feature in a Runestone version. A @label attribute is necessary for persistence in the Runestone database. Various PreTeXt features, such as playlists, are not yet supported—make a request.
Video cover image
The margins here are asymmetric just as a test. And this text is here to see where the video ends.