Socket
Socket
Sign inDemoInstall

master-video

Package Overview
Dependencies
3
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    master-video

a React Video Player


Version published
Weekly downloads
3
decreased by-40%
Maintainers
1
Install size
115 kB
Created
Weekly downloads
 

Readme

Source

Master Video

npm Discord

a React Video Player

Install

npm install --save master-video

Useage

JavaScript:

import MasterVideo from 'master-video'

import video from 'video.mp4'


const Options = { 
    loop: true,
    masterClass: 'custom-class-name',
    iconsColor: '#0f0',
    playIconColor: '#0ff',
    fullscreenIconColor: '#ff0',
    volumeIconColor: '#fff',
    timeLine: {
        track: '#f00',
        thumb: '#0f0',
        rail: '#00f',
    },
    volume: {
        rail: '#FFF',
        thumb: '#f00',
        track: '#00f',
    },
}

const App = () => {
    return (
        <div className='app'>
            <MasterVideo 
                options={Options} 
                source={video} 
            />
        </div>
    )
}

TypeScript:

import MasterVideo, { Options } from 'master-video'

const video = 'https://example.com/video.mp4'

const Options: Options = {
    loop: true
}

const App = () => {
    return (
        <div className='app'>
            
            <MasterVideo source={video} options={Options} />
        </div>
    )
}

Keywords

FAQs

Last updated on 13 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc