Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@mux/mux-audio
Advanced tools
A custom mux audio element for the browser that Just Works™
<mux-audio></mux-audio>
is a Mux-flavored HTML5 audio element.
If you are familiar with using <audio />
+ Hls.js in your application, then you'll feel right at home with this web component.
If you're using npm
or yarn
, install that way:
yarn add @mux/mux-audio
or
npm i @mux/mux-audio
Then, import the library into your application with either import
or require
:
import '@mux/mux-audio';
or
require('@mux/mux-audio');
Alternatively, use the CDN hosted version of this package:
<script src="https://cdn.jsdelivr.net/npm/@mux/mux-audio@0"></script>
If you are using ecmascript modules, you can also load the mux-audio.mjs
file with type=module
:
<script type="module" src="https://cdn.jsdelivr.net/npm/@mux/mux-audio@0/dist/mux-audio.mjs"></script>
<mux-audio>
has all the same features, benefits and options as <mux-video>
. View the documentation for <mux-video>
for details.
Even though we don't (yet!) have our own React
version of <mux-audio>
, you can still use it in your React
app. However, if you're also using TypeScript, make sure you add the following TypeScript definitions, since custom elements (like as <mux-audio>
) will not be recognized as Intrinsic Elements:
interface MuxAudioHTMLAttributes<T> extends React.AudioHTMLAttributes<T> {
debug?: boolean;
autoplay?: boolean;
}
declare global {
namespace JSX {
interface IntrinsicElements {
'mux-audio': React.DetailedHTMLProps<MuxAudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>;
}
}
}
FAQs
A custom mux audio element for the browser that Just Works™
The npm package @mux/mux-audio receives a total of 136 weekly downloads. As such, @mux/mux-audio popularity was classified as not popular.
We found that @mux/mux-audio demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.