Using the API

You'll find some of afterglow's API functions in action here.

Let's first create a basic player like this:

<!DOCTYPE html>
    <title>afterglow player</title>
    <script src="//"></script>
    <video class="afterglow" id="myvideo" width="1280" height="720">
        <source type="video/mp4" src="/path/to/myvideo.mp4" />

This is what the player looks like:

Now lets manipulate it by using some API functions.

And lets use some diagnostic functions.