ovidlay

1.2.2 • Public • Published

ovidlay

Fully customizable YouTube video overlay for React

Usage

To use ovidlay all you need is the videoId of the YouTube video you want to add to your page: image

import Ovidlay from "ovidlay"

...

<Ovidlay 
  videoId="g1iC1h8Nt68" 
  containerClassName="player"
  playButtonColor="#162363"
  sliderPrimaryColor="#162363"
  sliderSecondaryColor="#ffffff"
>
  <div style={{position: 'absolute', top: "25%", width: "100%"}}>
    <h1 style={{textAlign: "center"}}>
      Sample Text
    </h1>
  </div>
</Ovidlay>

image

Props

Name Type Required Description
videoId string Y YouTube video id to be used by the video player
containerClassName string N Class Name to be applied to the component (components default styling uses height & width 100%)
playButtonColor string N Background color for the play button, defaults to black (#000000)
sliderPrimaryColor string N Color of the progress and volume sliders in the overlay controls, defaults to red (#ff0000)
sliderSecondaryColor string N Color of progress and volume slider backgrounds, defaults to white (#ffffff) NOTE: 50% opacity is applied to this color

Contribute

Issues, Pull Requests, and feedback are all welcome!

Built and maintained by Candor

Package Sidebar

Install

npm i ovidlay

Weekly Downloads

0

Version

1.2.2

License

ISC

Unpacked Size

37.1 kB

Total Files

3

Last publish

Collaborators

  • dranoelmit