Get started with shaka-player CDN

Apache License 2.0 licensed

Shaka-Player is an open-source HTML5 video player written in JS.

Tags:
  • shaka
  • player

Stable version

Copied!

How to start using shaka-player CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with shaka-player CDN - cdnhub.io</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/shaka-player@4.7.11/dist/shaka-player.min.css">
</head>
<body>
  <video id="video" class="video-js" controls preload="auto" width="640" height="360" data-shaka-player>
    <source src="path/to/your/video.mp4" type="video/mp4">
    <source src="path/to/your/video.webm" type="video/webm">
  </video>
  <script src="https://cdn.cdnhub.io/shaka-player/4.7.11/shaka-player.compiled.js"></script>
  <script>
    document.addEventListener('DOMContentLoaded', function() {
      const videoElement = document.querySelector('#video');
      shaka.player.attach(videoElement);
    });
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions

1.1.0 1.2.0 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 2.0.0 2.0.0-beta 2.0.0-beta2 2.0.0-beta3 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.10 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.10 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.4.6 2.4.7 2.5.0 2.5.0-beta 2.5.0-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