react-happy-video

stylish low-config react video player

Usage no npm install needed!

<script type="module">
  import reactHappyVideo from 'https://cdn.skypack.dev/react-happy-video';
</script>

README

react-happy-video Build Statuscodecov

Welcome to react-happy-player, a low-config react component for a stylish video player. Intended to provide easy control on the video playback. See a demo.

Install

$ npm i react-happy-video

Usage

import VideoPlayer from "react-happy-video";
const YourComponent = () => {
  return (
    <VideoPlayer
        width="600px"
        color:"#3b3346"
        source="[your url]"
    />
  )
}

How to contribute:

  • install a react app somewhere on your machine (we will call demo/ the folder), Be sure to have hot-reloading.
  • clone the react-happy-player somewhere else (we will call library/ the folder)
  • npm link in library/
  • npm link react-happy-video in demo/
  • import and use the VideoPlayer in demo/ WHITHOUT npm i react-happy-video
  • start your demo/ react app
  • npm run build:watch in library/
  • Edit the react-happy-player library

The MIT License (MIT) Copyright (c) 2018 Julien Demarque