npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

blincs-player

v1.0.0

Published

Blincs Player is a customizable React video player component with TypeScript support. It uses Tailwind CSS for styling and allows developers to fully customize the player buttons and other elements. The player is optimized for chunked media playback, ensu

Downloads

4

Readme

Blincs Player

Blincs Player is a customizable React video player component with TypeScript support. It uses Tailwind CSS for styling and allows developers to fully customize the player buttons and other elements. The player is optimized for chunked media playback, ensuring faster load times and smoother streaming.

Features

  • Play/Pause button
  • Volume control (increase, decrease, set to 100%)
  • Full-screen toggle
  • Forward 10 seconds
  • Rewind 10 seconds
  • Fully customizable button styles and labels using props
  • Supports chunked media playback for faster streaming

Installation

To install Blincs Player, use npm or yarn:

npm install blincs-player
yarn add blincs-player

Usage

Import the Player component and use it in your project:

import React from 'react';
import Player from 'blincs-player';
import 'blincs-player/dist/player.css'; // Ensure you import the styles

const App: React.FC = () => {
  return (
    <div className="App">
      <Player
        videoUrl="https://example.com/video"
        customClasses="custom-video-player-class"
        buttonStyles={{
          playPause: 'custom-play-pause-class',
          volumeUp: 'custom-volume-up-class',
          volumeDown: 'custom-volume-down-class',
          volumeMax: 'custom-volume-max-class',
          fullScreen: 'custom-full-screen-class',
          forward: 'custom-forward-class',
          rewind: 'custom-rewind-class',
        }}
        buttonLabels={{
          play: 'Play',
          pause: 'Pause',
          volumeUp: 'Volume Up',
          volumeDown: 'Volume Down',
          volumeMax: 'Max Volume',
          fullScreen: 'Full Screen',
          forward: 'Forward 10s',
          rewind: 'Rewind 10s',
        }}
      />
    </div>
  );
};

export default App;

Props

videoUrl

  • Type: string
  • Description: The URL of the video to be played.

customClasses

  • Type: string
  • Description: Custom classes to apply to the video player container.

buttonStyles

  • Type: object
  • Description: Custom styles for each button.
  • Structure:
    • playPause: Custom class for play/pause button
    • volumeUp: Custom class for volume up button
    • volumeDown: Custom class for volume down button
    • volumeMax: Custom class for volume max button
    • fullScreen: Custom class for full-screen button
    • forward: Custom class for forward button
    • rewind: Custom class for rewind button

buttonLabels

  • Type: object
  • Description: Custom labels for each button.
  • Structure:
    • play: Label for play button
    • pause: Label for pause button
    • volumeUp: Label for volume up button
    • volumeDown: Label for volume down button
    • volumeMax: Label for volume max button
    • fullScreen: Label for full-screen button
    • forward: Label for forward button
    • rewind: Label for rewind button

Example

import React from 'react';
import Player from 'blincs-player';
import 'blincs-player/dist/player.css'; // Ensure you import the styles

const App: React.FC = () => {
  return (
    <div className="App">
      <Player
        videoUrl="https://example.com/video"
        customClasses="custom-video-player-class"
        buttonStyles={{
          playPause: 'bg-custom-play-pause text-custom',
          volumeUp: 'bg-custom-volume-up text-custom',
          volumeDown: 'bg-custom-volume-down text-custom',
          volumeMax: 'bg-custom-volume-max text-custom',
          fullScreen: 'bg-custom-full-screen text-custom',
          forward: 'bg-custom-forward text-custom',
          rewind: 'bg-custom-rewind text-custom',
        }}
        buttonLabels={{
          play: 'Play',
          pause: 'Pause',
          volumeUp: 'Volume Up',
          volumeDown: 'Volume Down',
          volumeMax: 'Max Volume',
          fullScreen: 'Full Screen',
          forward: 'Forward 10s',
          rewind: 'Rewind 10s',
        }}
      />
    </div>
  );
};

export default App;

License

MIT