New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sunmoon-player

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sunmoon-player

A multifunctional and beautiful React-based web video player.

latest
npmnpm
Version
1.2.6
Version published
Maintainers
1
Created
Source

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 for React, It has a simple interface and smooth operation which supports the most functions of other video players. In addition, Qier-player can switch between video resolutions (4K, 2K, 1080P, 720P and 480P) if desired.

Keyboard Shortcuts

For these to work, the player must be in focus.

  • Up arrow key: Volume up
  • Down arrow key: Volume down
  • Left arrow key: Rewind 3 seconds
  • Right arrow key: Skip forward 3 seconds
  • Space key: Toggle play/pause

Here is an official demo site showing the player in use.

Screenshot

Screenshot of Qier Player

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

ParameterDescriptionTypesDefaults
widthsetting the video width (e.g. 740 or "100%")number | string740
heightsetting the video height (e.g. 420 or "100%")number | string420
languagelanguage: 'en' is English and 'zh' is Chinese"en" | "zh"'en'
themeColortheme color (only supports hexadecimal color)string'#f23300'
src480p480p source URLboolean | stringfalse
src1080p1080p source URLboolean | stringfalse
src720p720p source URLboolean | stringfalse
src2k2K source URLboolean | stringfalse
src4k4K source URLboolean | stringfalse
srcOriginorigin source URL (set this if not using specific resolution sources)boolean | stringfalse

Keywords

vortesnail

FAQs

Package last updated on 06 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts