Git Product home page Git Product logo

artplayer's Introduction

ArtPlayer.js

🎨 ArtPlayer.js is a modern and full featured HTML5 video player

Build Status version license size npm Downloads Codacy Badge dependencies Status

Screenshot

Features

  • Size - artplayer.js90kb and artplayer.css20kb
  • Subtitle - Support for .VTT, .ASS and .SRT formats
  • Customizable - Right Click Menu, Business Layer, Video Controller and Settings Panel
  • Controller - Quality Switch, Subtitle Switch, Play Speed, Aspect Ratio, Video Flip, Fullscreen, Picture In Picture, Screenshot, Thumbnail, Adaptive Size, Highlight and Hotkey...
  • Built-in - Open Local Subtitles, Open Local Video, Mini Progress Bar, Network Detection and Subtitle Time Offset
  • Integration - Easy to integration with other dependencies: flv.js, hls.js, dash.js, shaka-player, webtorrent...
  • Code - Vanilla ES6 and SASS, Highly decoupled code, clear structure, easy to track bugs and add new features
  • Document - Detailed interface documentation and rich code demo
  • API - Rich interface and response events, easy to interface with business or custom plugin
  • I18N - support for internationalization of controls

Ecosystem

Project Description Demo
artplayer-plugin-danmuku Danmuku plugin demo
artplayer-plugin-gif Gif plugin demo
artplayer-plugin-backlight Backlight plugin demo
artplayer-tool-thumbnail Thumbnail tool demo
artplayer-tool-github Github Danmuku tool demo
artplayer-react React Component demo
artplayer-vue Vue Component demo

Demo

Checkout the demo from Github Pages

Document

Checkout the Document from Github Pages

Install

Install with npm:

$ npm install artplayer

Or install with yarn:

$ yarn add artplayer
import Artplayer from 'artplayer';
import 'artplayer/dist/artplayer.css';

Or umd builds are also available:

<link rel="stylesheet" href="path/to/artplayer.css" />
<script src="path/to/artplayer.js"></script>

Will expose the global variable to window.Artplayer.

Usage

<div class="artplayer-app"></div>
var art = new Artplayer({
    container: '.artplayer-app',
    url: 'path/to/video.mp4',
});

Contribution

Installation dependency:

$ npm install
$ npm run bootstrap

Run the developer mode and select the project you want to develop:

$ npm run dev

Open web server:

$ npm start

Donations

We accept donations through these channels:

QQ Group

QQ Group

License

MIT © Harvey Zack

artplayer's People

Contributors

amowu avatar dependabot-preview[bot] avatar dependabot-support avatar fossabot avatar zhw2590582 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.