
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@falconia/react-flv-player
Advanced tools
npm i react-flv-player
import React, { Component } from 'react';
import {ReactFlvPlayer} from 'react-flv-player'
class Index extends Component {
render() {
return (
<div>
<ReactFlvPlayer
url = "http://xxx/xxx/xxx.flv"
heigh = "800px"
width = "800px"
isMuted={true}
/>
</div>
);
}
}
export default Index;

| Field | Type | Default | Description |
|---|---|---|---|
type | string | flv | Indicates media type, 'flv' or 'mp4' |
isLive? | boolean | true | Indicates whether the data source is a live stream |
hasAudio? | boolean | true | Indicates whether the stream has audio track |
hasVideo? | boolean | true | Indicates whether the stream has video track |
url? | string | url | Indicates media URL, can be starts with 'https(s)' or 'ws(s)' (WebSocket) |
enableStashBuffer? | boolean | true | Enable IO stash buffer. Set to false if you need realtime (minimal latency) for live stream |
stashInitialSize? | number | 128 (KB) | Indicates IO stash buffer initial size. Default is 384KB. Indicate a suitable size can improve video load/seek time. |
height? | px or % | 100% | |
width? | px or % | 100% | |
autoPlay? | boolean | false | |
controls? | boolean | true | |
controlsList? | string | undefied | |
loop? | boolean | false | |
muted? | boolean | false | Indicates audio output when init the video |
handleError? | function | (err)=>{console.log(err)} | Handle errors, error type is enum |
enableWarning? | boolean | false | Enable Warnings in Console |
enableError? | boolean | false | Enable errors in Console |
<ReactFlvPlayer
url={videoUrl}
isMuted
handleError={(err) => {
switch (err) {
case 'NetworkError':
// todo
console.log('network error');
break;
case 'MediaError':
console.log('network error');
break;
default:
console.log('other error');
}
}}
/>
| Error | Description |
|---|---|
| NETWORK_ERROR | Errors related to the network |
| MEDIA_ERROR | Errors related to the media (format error, decode issue, etc) |
| OTHER_ERROR | Any other unspecified error |
FAQs
A React Component to play flv video
We found that @falconia/react-flv-player 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.