Security News
npm Updates Search Experience with New Objective Sorting Options
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
mirax-player
Advanced tools
Mirax Player is a light-weight javascript video player.
https://www.npmjs.com/package/mirax-player
To install the Mirax Player, you can use the following npm command:
npm install mirax-player
You can apply it in react app
In you React component
Then use it from Mirax Player:
import React, { useEffect, useState } from 'react';
import { mirax } from 'mirax-player';
const ExampleComponent = () => {
const [isPlaying, setIsPlaying] = useState(false);
useEffect(() => {
const video = document.querySelector('.mirax');
if (video) {
mirax(video, isPlaying, setIsPlaying);
}
}, [isPlaying]);
return (
<div>
<div className='whatever'>
<video className="mirax" src="clip.mp4"></video>
</div>
</div>
);
};
export default ExampleComponent;
import React, { useEffect, useState, useRef } from 'react';
import { mirax } from 'mirax-player';
const ExampleComponent = () => {
const [isPlaying, setIsPlaying] = useState(false);
const videoRef = useRef(null);
useEffect(() => {
if (videoRef.current) {
mirax(videoRef.current, isPlaying, setIsPlaying);
}
}, [isPlaying]);
return (
<div>
<div className='whatever'>
<video ref={videoRef} className="mirax" src="clip.mp4"></video>
</div>
</div>
);
};
export default ExampleComponent;
MIT
FAQs
A free video player compatible with React, Vue, Angular, and Svelte.
The npm package mirax-player receives a total of 4 weekly downloads. As such, mirax-player popularity was classified as not popular.
We found that mirax-player 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.
Security News
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.