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

svelte-video-kit

v1.0.0-alpha.5

Published

A powerful video playback tool that can be customized to perfectly fit modern, stylish, and even older apps.

Downloads

196

Readme

Svelte Video Kit

This library is a powerful video playback tool that can be customized to perfectly suit modern, elegant, and even older applications.

💡 Requirements

The library Supports NodeJS version 18 or higher.

📲 Installation

yarn add svelte-video-kit
# OR
npm install svelte-video-kit

🌟 Getting Started

Simple usage looks like:

// Step 1: Import the parts of the module you want to use
<script>
  import VideoPlayer from 'svelte-video-player';
  ...
</script>

// Step 2: Create the attributes
<script>
  ...
  const poster = 'https://www.server.com/poster.jpg';
  const source = [
    'https://www.server.com/video.webm',
    'https://www.server.com/video.mp4',
    'https://www.server.com/video.ogv',
  ];
  ...
</script>

// Step 3: Calls the component
  <VideoPlayer {poster} {source} />;

📋 Customizable attributes

| Prop name | Type | Default value | Description | | :-------------- | :---------------------------------- | ---------------------- | ----------------------------------------------------------------------------------------------------------- | | width | number | 1920 | Real width of video for calculating aspect ratio for responsive design | | height | number | 1080 | Real height of video for calculating aspect ratio for responsive design | | poster | string | '' | Absolute or relative URL of poster image | | source | string | string[] | '' | Absolute or relative URL (or array of those) of video source. Supported formats are webm, mp4 and ogg | | controlsHeight | number | 55 | Height of bottom control bar, rescaling included components | | trackHeight | number | 6 | Height of playbar and volume slider tracks | | thumbSize | number | 15 | Size of playbar and volume slider thumb | | centerIconSize | number | 60 | Size of center icon | | playerBgColor | string | 'black' | Color of player background | | color | string | '#FF3E00' | Main color of control components | | focusColor | string | 'white' | Color of focus outlines | | barsBgColor | string | 'white' | Background color of playbar and volume slider tracks | | iconColor | string | 'white' | Color of button icons | | bufferedColor | string | '#FF9600' | Color of buffered chunks | | borderRadius | number | 8 | Rounded corner radius of the player. | | skipSeconds | number | 5 | Skipping time in seconds | | chunkBars | boolean | false | Display overlay with buffered and played parts of video | | loop | boolean | false | Play video in loop | | controlsOnPause | boolean | true | Show control bar when video is paused | | timeDisplay | boolean | false | Display current time beside playbar |

📦 Packages

This repo uses pnpm workspaces, which TLDR means if you want to run a commands in each project then you can either cd to that directory and run the command, or use pnpm -r [command].

For example pnpm -r test.

Just

Just-debounce-it / Just-throttle

Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

screenfull

Simple wrapper for cross-browser usage of the JavaScript Fullscreen API, which lets you bring the page or any element into fullscreen. Smoothens out the browser implementation differences, so you don't have to. screenfull

🤝 Contributing

All contributions are welcome, ranging from people wanting to triage issues, others wanting to write documentation, to people wanting to contribute with code.

Please read and follow our contribution guidelines. Contributions not following these guidelines will be disregarded. The guidelines are in place to make all of our lives easier and make contribution a consistent process for everyone.

📜 What happened to the original svelte-video-player?

Read the team update (October 16th, 2023).

🏻 License

MIT license. Copyright (c) 2023 Ediberto BO
For more information, see the LICENSE file.