Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
mosaic-audio
Advanced tools
A simple, lightweight wrapper for the HTML media element, specifically targetting audio functionality. There is no styling included in this wrapper.
npm i mosaic-audio --save
Supply a player ID, a source file, and CSS class names for each nested element. If no class names or ID's are given, default classes/ID's are created. The margin property is used to determine whether or not the playhead moves via margin change or via padding change. If the margin is marked as false, it'll move by increasing padding. Its default value is true.
Other available properties: playerId, playerClass, timelineClass, playheadClass, & durationClass.
import './css/main.css';
import React from 'react';
import ReactDOM from 'react-dom';
import Mosaic from 'mosaic-audio';
const App = () => (
<Mosaic
margin={false}
playClass="fa fa-play"
pauseClass="fa fa-pause"
source="audio/1.wav"
/>
);
ReactDOM.render(<App/>, document.getElementById('app'));
Feel free to create an issue, or message me at @mskalandunas if you have any questions.
FAQs
A React audio wrapper for the HTML media element.
We found that mosaic-audio demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.