Replacing SublimeVideo

afterglow works as a drop-in replacement for SublimeVideo. This page tells you how and why.

If you have been using SublimeVideo for your website, you might have been faced with it's termination of services. The team behind it created a great product, but then decided to not help users when terminating services.

We were put in the same situation as you might be in right now. We searched a lot and didn't find any real alternative to SublimeVideo, so we decided to create a player that can work as a drop-in replacement.

How-To

If your site is currently setup to use SublimeVideo, it's pretty easy to switch over to afterglow. Just replace their Javascript with afterglow. That's it. Can't believe it? Try it out. ;-)

Before

You will have your SublimeVideo-Javascript in the <head> or at the bottom of you HTML file.

<!DOCTYPE html>
<html>
  <head>
    <!-- Some meta tags and so on -->
    <script type="text/javascript" src="//cdn.sublimevideo.net/js/xxxxxxx.js"></script>
  </head>
  <body>
    <!-- Some content including your players -->
  </body>
</html>

Just replace the url pointing to SublimeVideo's CDN with a url pointing to afterglow.

After

It should look like this after exchanging the script:

<!DOCTYPE html>
<html>
  <head>
    <!-- Some meta tags and so on -->
    <script type="text/javascript" src="//cdn.jsdelivr.net/npm/afterglowplayer@1.x"></script>
  </head>
  <body>
    <!-- Some content including your players -->
  </body>
</html>

See? The only thing we changed is the src attribute of the <script> element. The players should now automatically be initialized when calling the page and use afterglow.

You don't have to change anything in your markup. Just leave everything else as it is.

🚧

afterglow is not a complete copy of SublimeVideo

afterglow does not support all features that were provided by SublimeVideo. We will try to add those features one after the other, but things will take their time. The most important parts (like browser compatibilty, format support, and so on) are covered, though.

Be independent if you want to!

When it comes to reliability, we promise not to behave like SublimeVideo. afterglow won't leave you hanging with no further support some day. If you use the CDN-hosted version (like in the example above), you can rely on jsDelivr to be a great CDN hosting thousands of open source projects and being driven by several great commercial CDNs. It won't disappear from one moment to the other.

If you don't want to rely on other people, just don't. You can self-host afterglow and run in on your own servers. Read more about this in the self-hosting guide.