samao / DPlayer

:lollipop: Wow, such a lovely HTML5 danmaku video player

Home Page:http://dplayer.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ADPlayer

DPlayer

Wow, such a lovely HTML5 danmaku video player

npm npm devDependency Status npm Travis donate

Introduction

image

DPlayer is a lovely HTML5 danmaku video player to help people build video and danmaku easily.

DPlayer supports:

  • Streaming formats
  • Media formats
    • MP4 H.264
    • WebM
    • Ogg Theora Vorbis
  • Features
    • Danamku
    • Screenshot
    • Hotkeys
    • Quality switching

Using DPlayer on your project? Let me know!

Demo

Docs

Install

$ npm install dplayer --save

Quick Start

<link rel="stylesheet" href="dist/DPlayer.min.css">
<div id="player1"></div>
<script src="dist/DPlayer.min.js"></script>
var dp = new DPlayer({
    element: document.getElementById('player1'),
    video: {
        url: 'dplayer.mp4',
        pic: 'dplayer.png'
    },
    danmaku: {
        id: 'testid',
        api: 'https://api.prprpr.me/dplayer/'
    }
});

Usage

Read the Docs

Join the Discussion

Related Projects

Who use DPlayer?

CDN

Donate

Author

DPlayer © DIYgod, Released under the MIT License.
Authored and maintained by DIYgod with help from contributors (list).

Blog @Anotherhome · GitHub @DIYgod · Twitter @DIYgod · Weibo @DIYgod酱 · Telegram Channel @awesomeDIYgod

About

:lollipop: Wow, such a lovely HTML5 danmaku video player

http://dplayer.js.org

License:MIT License


Languages

Language:JavaScript 69.0%Language:CSS 31.0%