react-scplayer

1.0.0 • Public • Published

React SCPlayer

Live, local and social network video player.Using this module;

  • HLS (.m3u8) Stream
  • Local files (mp4, WebM, ogg)
  • Various social network (YouTube, Dailymotion, Vimeo vs.)

you can play video files.

Installation

$ npm install react-scplayer

or

$ yarn add react-scplayer

Simple Using

...
import Scplayer from "scplayer";
...
    <Scplayer url="VIDEO_FILE_URL" />

Props

Prop Type Default Description
url string null Video file or stream url
source string null For stream video "HLS" or for files "File"
controls bool false For show control bar add this prop
autoPlay bool false For autoplay using
muted bool false For mute video
poster string null Poster image url
width string 100% Video player witdh
height string auto Video player height

Package Sidebar

Install

npm i react-scplayer

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

176 kB

Total Files

7

Last publish

Collaborators

  • scaki