indigo-player
TypeScript icon, indicating that this package has built-in type declarations

1.5.1 • Public • Published

indigo-player

Highly extensible, modern, JavaScript player. 👊

Travis CI

  • Strict defined API, which makes it easy to build analytics and various other plugins on top of indigo-player.
  • Dynamic bundle loading, automatically determines and loads which modules are needed for playback.
  • Highly modular plugin system to extend functionality without modifying it's core.
  • Out-of-the-box features such as subtitles, thumbnails, quality selection if applicable, ...
  • React based UI.

Documentation

Visit the documentation. 😎

Getting started

The example below will load a simple MP4 file, and attempt to autoplay it.

<html>
  <body>
    <div id="playerContainer"></div>
    <script src="https://cdn.jsdelivr.net/npm/indigo-player@1/lib/indigo-player.js"></script> 
    <script>
      const config = {
        sources: [
          {
            type: 'mp4',
            src: 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
          }
        ],
      };
 
      const element = document.getElementById('playerContainer');
      const player = IndigoPlayer.init(element, config);
 
      // You can use the player object now to access the player and it's methods (play, pause, ...)
    </script> 
  </body>
</html>

Mentions

Much ❤️ on getting the word out!

Cheers 🍺

Dependencies (18)

Dev Dependencies (34)

Package Sidebar

Install

npm i indigo-player

Weekly Downloads

21

Version

1.5.1

License

none

Unpacked Size

2.86 MB

Total Files

161

Last publish

Collaborators

  • matvp91