
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@chrisabdo/video
Advanced tools
A lightweight and customizable React video player component.
npm install @chrisabdo/video
import { Video } from "@chrisabdo/video";
function App() {
return (
<Video
src="path/to/your/video.mp4"
progressColor="#3B82F6"
controlsColor="#FFFFFF"
textColor="#FFFFFF"
controlsBackgroundColor="rgba(0, 0, 0, 0.5)"
/>
);
}
The Video
component accepts all standard HTML video attributes in addition to the following custom props:
Prop | Type | Default | Description |
---|---|---|---|
src | string | - | The source URL of the video (required) |
progressColor | string | "#3B82F6" | Color of the progress bar |
controlsColor | string | "#FFFFFF" | Color of the control icons |
textColor | string | "#FFFFFF" | Color of the text (time display) |
controlsBackgroundColor | string | "rgba(0, 0, 0, 0.5)" | Background color of the controls bar |
hideControls | boolean | false | If true, hides the control bar |
className | string | - | Additional CSS class for the video container |
interface VideoProps extends React.VideoHTMLAttributes<HTMLVideoElement> {
progressColor?: string;
controlsColor?: string;
textColor?: string;
hideControls?: boolean;
controlsBackgroundColor?: string;
}
To contribute to this project:
bun install
bun run build
Christopher Abdo
If you encounter any issues or have feedback, please file an issue on the GitHub repository.
FAQs
A lightweight and customizable React video player component
We found that @chrisabdo/video demonstrated a not healthy version release cadence and project activity because the last version was released 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.