1.0.0 • Published 5 years ago

react-scplayer v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

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

PropTypeDefaultDescription
urlstringnullVideo file or stream url
sourcestringnullFor stream video "HLS" or for files "File"
controlsboolfalseFor show control bar add this prop
autoPlayboolfalseFor autoplay using
mutedboolfalseFor mute video
posterstringnullPoster image url
widthstring100%Video player witdh
heightstringautoVideo player height