@nialleccles/projector

1.0.6 • Public • Published

projector

A simple overlay for playing YouTube videos.

Setup

npm install @nialleccles/projector

Usage

  const projector = require('@nialleccles/projector')

  var myPlayer = new projector.Projector('<YouTubeVideoId>');
  document.getElementById('<yourElementId>').addEventListener('click', ()=>{
      myPlayer.start();
  });

Example

example image of video overlay

/@nialleccles/projector/

    Package Sidebar

    Install

    npm i @nialleccles/projector

    Weekly Downloads

    3

    Version

    1.0.6

    License

    ISC

    Unpacked Size

    16.5 kB

    Total Files

    7

    Last publish

    Collaborators

    • nialleccles