Playing a Vimeo video
This page shows you how to play a youtube video using afterglow.
If you want to play a video which is hosted on Vimeo, you should use the data-vimeo-id
parameter. This example shows you how the result would look like.
<!DOCTYPE html>
<html>
<head>
<title>afterglow player</title>
<script src="//cdn.jsdelivr.net/npm/afterglowplayer@1.x"></script>
</head>
<body>
<video class="afterglow" id="myvideo" width="960" height="540" data-vimeo-id="233970493"></video>
</body>
<html>
Using this basic lightbox setup, the player would look like this:
Please be aware, that regular Vimeo videos cannot use any other player ui than the one provided by Vimeo. This is a premium feature, which you have to pay for. So the afterglow ui won't tune in for Vimeo videos.
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.
Updated less than a minute ago