
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@twick/live-player
Advanced tools
A React component for video playback and control with advanced timeline support.
A React component for video playback and control with advanced timeline support.
This package provides a powerful video player component that supports complex timeline-based video playback, custom controls, and real-time rendering of video projects with multiple tracks and elements.
npm install @twick/live-player
# or
pnpm add @twick/live-player
import React, { useState } from "react";
import projectData from "./sample";
import { LivePlayer } from "@twick/live-player";
function VideoPlayerComp() {
const [playing, setPlaying] = useState(false);
return (
<div>
<button onClick={() => setPlaying((prev) => !prev)}>Toggle playback</button>
<LivePlayer
projectData={projectData} // Your video project configuration
videoSize={{
width: 720,
height: 1280,
}}
playing={playing}
/>
</div>
);
}
export default VideoPlayerComp;
{
"input": {
"properties": {
"width": 720,
"height": 1280
},
"timeline": [
{
"id": "t-element",
"type": "element",
"elements": [
{
"id": "e-244f8d5a3baa",
"type": "rect",
"s": 0,
"e": 5,
"props": {
"width": 720,
"height": 1280,
"fill": "#FFF000"
}
}
],
"name": "element"
},
{
"id": "t-element",
"type": "element",
"elements": [
{
"id": "e-244f8d5a3bba",
"type": "text",
"s": 0,
"e": 1,
"props": {
"text": "Hello Guys!",
"fontSize": 100,
"fill": "#FF0000"
}
},
{
"id": "e-244f8d5a3bbb",
"type": "text",
"s": 1,
"e": 4,
"props": {
"text": "Welcome to the world of Twick!",
"fontSize": 100,
"fill": "#FF0000",
"maxWidth": 500,
"textAlign": "center",
"textWrap": true
}
}
],
"name": "element"
}
]
},
"version": 1
}
projectData
: Object containing video project configurationvideoSize
: Object specifying video dimensions
{
width: number;
height: number;
}
playing
: Boolean to control play/pause stateonDurationChange
: Callback function when video duration changesonTimeUpdate
: Callback function for time updates during playbackLivePlayer
: Main video player componentLivePlayerProps
: Props interface for LivePlayer componentVideoSize
: Interface for video dimensionsProjectData
: Interface for video project configurationFor complete API documentation, refer to the generated documentation.
This library requires a browser environment with support for:
For complete documentation, refer to the project documentation site.
This package is licensed under the Sustainable Use License (SUL) Version 1.0.
For commercial licensing inquiries, contact: contact@kifferai.com
For full license terms, see the main LICENSE.md file in the project root.
FAQs
A React component for video playback and control with advanced timeline support.
The npm package @twick/live-player receives a total of 69 weekly downloads. As such, @twick/live-player popularity was classified as not popular.
We found that @twick/live-player demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.