Playing a Youtube video

This page shows you how to play a youtube video using afterglow.

If you want to play a video which is hosted on Youtube, you should use the data-youtube-id parameter. This example shows you how the result would look like.

<!DOCTYPE html>
    <title>afterglow player</title>
    <script src="//"></script>
    <video class="afterglow" id="myvideo" width="960" height="540" data-youtube-id="5jidaSuRVKw"></video>

Using this basic lightbox setup, the player would look like this:


Read more about player parameters

If you want to learn more about the player parameters that are available, you should take a look at the player parameters section.