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

@alireza-brz/react-video.js

v0.0.4

Published

**react-video.js** is like a friendly neighbor who knows all about **video.js** and is here to lend a helping hand. It's not flashy like a superhero, but it gets the job done. 🎬

Downloads

15

Readme

react-video.js 🎥🚀

react-video.js is like a friendly neighbor who knows all about video.js and is here to lend a helping hand. It's not flashy like a superhero, but it gets the job done. 🎬

What's the Scoop? 🍦

Imagine this: You're building a React app, and suddenly, you need video playback. Enter react-video.js! It's like having a backstage pass to the video.js concert. 🎵

Installation Made Easy 🛠️

Whether you prefer yarn or npm, we've got you covered:

# Use yarn (because it's chill)
yarn add @alireza-brz/react-video.js

# Or use npm (because it's classic)
npm install @alireza-brz/react-video.js

Showtime! 🎟️

Here’s a snippet from our laid-back React script:

import React from 'react';
import { ReactVideoJs, VideoJsOptions } from '@alireza-brz/react-video.js';

function MyVideo() {
  const videoJsOptions: VideoJsOptions = {
    autoplay: false,
    controls: true,
    responsive: true,
    fluid: true,
    sources: [
      {
        src: 'https://pixabay.com/videos/download/video-40456_large.mp4',
        type: 'video/mp4',
      },
    ],
    autoSetup: true,
  };

  const handlePlayerReady = (player) => {
    // You can handle player events here, for example:
    player.on('waiting', () => {
      console.log('🍿 Player is waiting');
    });

    player.on('dispose', () => {
      console.log('🎬 Player will dispose');
    });
  };

  return (
    <div
      style={{
        width: '500px',
        height: '500px',
      }}
    >
      <ReactVideoJs options={videoJsOptions} onReady={handlePlayerReady} />
    </div>
  );
}

export default MyVideo;

Linking to video.js 🎬

React-Video.js is like the peanut butter to video.js’s jelly! 🥪 It’s built on top of the video.js library, making it the ultimate duo for video playback in your React apps. 🎥

For more information, behind-the-scenes gossip, and secret handshakes, head over to the video.js project page. 🕵️‍♂️

Contributing 🚀

We’re all about community vibes! If you want to sprinkle some magic into React-Video.js, follow these steps:

  • Fork the repository and clone it to your local machine.
  • Create a new branch for your feature or bug fix. Call it something cool, like “moonwalk-feature” or “bug-buster.”
  • Make your changes and test them thoroughly. No half-baked cookies here!
  • Ensure that your code follows the project’s coding standards. We’re sticklers for neatness.
  • Commit your changes and push them to your fork. 🚀
  • Submit a pull request to the main repository, explaining your changes. Bonus points for using emojis! 🌟

Feel free to join our cosmic coding party! 🎉 If you have questions, just holler. 🙌😎

Grab your favorite snack, dim the lights, and enjoy the show! 🍿🎥

Feel free to adjust the chill factor as needed! If you have any questions, just holler. 🙌😎

Remember to adjust the popcorn-to-code ratio as needed! If you need more enchantments, just wave your wand (or keyboard). 😉🔮

Apache 2 License 📜

React-Video.js is licensed under the Apache License 2.0. It’s like giving your code a passport to the open-source world! 🌎✨