GithubHelp home page GithubHelp logo

kingkorean / qier-player Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vortesnail/qier-player

0.0 1.0 0.0 5.13 MB

:clapper: A lightweight and sophisticated React-based H5 video player

Home Page: https://vortesnail.github.io/qier-player-demo/

License: MIT License

JavaScript 73.58% CSS 25.90% HTML 0.52%

qier-player's Introduction

A lightweight and sophisticated React-based H5 video player

GitHub Travis (.org) npm package npm bundle size GitHub stars

简体中文 | English

Introduction

Qier-player is a web video player component based on the React with a simple interface and smooth operation which supports the most functions of other player. Note that, Qier-player can switch the video clarity and provide the video source interface of original video, 4K, 2K, 1080P, 720P and 480P.

Feature

Video should be on focused, then:

  • Top arrow keys: volume increase
  • Bottom arrow keys: volume reduction
  • Left arrow keys: Rewind 3 seconds
  • Right arrow keys: fast forward 3 seconds
  • Space keys: pause/play

Here is Demo official website, click me to check

example

example

Quick Start

Install

npm install --save qier-player

Use

import React from 'react';
import ReactDOM from 'react-dom';
import QierPlayer from 'qier-player';

ReactDOM.render(<QierPlayer srcOrigin="Your video addedress" />, document.getElementById('root'));

API

Parameter Description Types Defaults
width setting the video width number 740
height setting the video height number 420
language language option:'en' is English and 'zh' is Chinese string 'en'
showVideoQuality Control the display and hide of the sharpness options boolean false
themeColor Change the theme color (currently only supports hexadecimal color) string '#f23300'
src480p 480P source option boolean | string false
src720p 720P source option boolean | string false
src1080p 1080P source option boolean | string false
src2k 2K source option boolean | string false
src4k 4K source option boolean | string false
srcOrigin origin source option(If no other option, it is recommended to configure this option, all other settings are false) boolean | string false

Recent update history

1.2.3 (2019-11-06)

  • Added width and height api to setting your own video width and height

1.2.2 (2019-11-04)

  • Added theme colour modification interface
  • Added language change API, 'en' is English, 'zh' is Chinese

1.1.2 (2019-11-01)

  • Added auto hide function:When the mouse is hovering over the video page, the controller and mouse are hidden after 1.8s.

1.1.1 (2019-10-29)

  • Added the prompt "Sorry! The video could not be found (. ́< ̀.)" When the video addedress is not found,
  • Added a hint animation "Buffering..." while the video is loading
  • Fixed a bug where custom shortcuts conflicted with browser shortcuts

Acknowledgements

  • Thanks to kaiseixd for his inspiration when I was in trouble.
  • Thanks to the screenfull plugin and the its author.
  • Thanks to fanzy for tranlsating README
  • Thanks to iconfont as an unselfish icon creator.

qier-player's People

Contributors

vortesnail 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.