🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

media-woofer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

media-woofer

Kick up the bass on your media element.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

<media-woofer>

Kick up the bass of your media element! :sound:

Put this tag in the page with your <video> or <audio> tag and it will shake the element along with the bass (using the Web Audio API and CSShake), and also vibrate mobile phones (currently Android only) using the Vibration API.

Becuz why not? ¯\_(ツ)_/¯

Example

<html>
<head>
  <script type="module" src="https://unpkg.com/media-woofer"></script>
</head>
<body>

  <video src="https://woofer.media/site/videos/pony-sample.mp4" controls></video>
  <media-woofer></media-woofer>

</body>
</html>

Installing

<media-woofer> is packaged as a javascript module (es6) only, which is supported by all evergreen browsers and Node v12+.

Loading into your HTML using <script>

Note the type="module", that's important.

Modules are always loaded asynchronously by the browser, so it's ok to load them in the head :thumbsup:, and best for registering web components quickly.

<head>
  <script type="module" src="https://unpkg.com/media-woofer"></script>
</head>

Adding to your app via npm

npm install media-woofer --save

Or yarn

yarn add media-woofer

Include in your app javascript (e.g. src/App.js)

import 'media-woofer';

This will register the custom elements with the browser so they can be used as HTML.

Keywords

woofer

FAQs

Package last updated on 22 Oct 2020

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