indigo-player

高度可扩展的现代 JavaScript 视频播放器。可处理 MPEG-Dash / HLS / MPEG-4,并基于 HTML5 视频元素构建。「Highly extensible, modern, JavaScript video player. Handles MPEG-Dash / HLS / MPEG-4 and is built on top of the HTML5 video element.」

Note: Due to other commitments, I'm having a hard time responding to issues (& actually getting them fixed for you guys). I'd be more than happy to accept PR's.

indigo-player

Highly extensible, modern, JavaScript player. 👊

Travis CI




jsdelivr

  • 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

In a browser

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>

As a module in your bundle

The example below will add indigo-player as a module in your project.

yarn add indigo-player
npm i indigo-player
import IndigoPlayer from "indigo-player";
// Bundle the css file too, or provide your own.
import "indigo-player/lib/indigo-theme.css";

const player = IndigoPlayer.init(container, config);

Mentions

Much ❤️ on getting the word out!

Cheers 🍺

主要指標

概覽
名稱與所有者matvp91/indigo-player
主編程語言TypeScript
編程語言Shell (語言數: 6)
平台
許可證Apache License 2.0
所有者活动
創建於2019-01-09 19:20:23
推送於2024-09-22 09:02:17
最后一次提交2024-09-22 11:02:17
發布數35
最新版本名稱v1.5.1 (發布於 )
第一版名稱v1.0.1 (發布於 )
用户参与
星數1.2k
關注者數9
派生數64
提交數330
已啟用問題?
問題數50
打開的問題數32
拉請求數39
打開的拉請求數26
關閉的拉請求數9
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?