New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-video-seek-slider

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-video-seek-slider

React video seek slider like youtube

  • 4.0.14
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.7K
increased by16.9%
Maintainers
1
Weekly downloads
 
Created
Source

react-video-seek-slider

The simplest and light weight video seeker like YouTube for React

Demo react-video-seek-slider

react-video-seek-slider

How to install

npm i react-video-seek-slider
or
yarn add react-video-seek-slider

How to import

For TypeScript usage there is a index.d.ts

import { VideoSeekSlider } from "react-video-seek-slider";

Also you have to use css file in a lib folder:

import "react-video-seek-slider/styles.css"

How to use

//JSX
    <VideoSeekSlider
        max={1152}
        currentTime={this.state.currentTime}
        progress={400}
        onChange={(time)=>{
            this.setState({
                currentTime:time
            } as State);
        }}
        offset={0}
        secondsPrefix="00:00:"
        minutesPrefix="00:"
    />

Specification

  • max (number, required) - Max sliders value
  • currentTime (number, required) - Current sliders value
  • progress (number) - Current buffered progress
  • hideSeekTimes (boolean) - hide hover current time (Default: false)
  • onChange ((time:number, offsetTime:number)=>void, required) - script to be run when thumb change position
  • offset (number, default:0) - when you need start slider with offset time
  • secondsPrefix (string, default: '') - when video time is less than one minutes you can use prefix time as "00:00:"
  • minutesPrefix (string, default: '') - when video time is less than one hour you can use prefix time as "00:"
  • limitTimeTooltipBySides (boolean, default: false) - limit the time tooltip position inside track

For development

just use:

$ npm i
$ npm run start

open your browser http://localhost:3000

For Build

$ npm run build

FAQs

Package last updated on 06 Sep 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc