
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
react-video-stream
Advanced tools
A React Library For Video And Audio Streaming With Custom Http Headers
A React Library For Video And Audio Streaming With Custom Http Headers
One of the most painful things is video streaming, and the painful part of video streaming is authenticated and protected video or audio. I worked on a system that requires authenticated videos on video playlist for authenticated students, so I have made this library as a small API inside of my react application, then I separated it into library, now you can call just one video class from the library and pass the options as shown bellow.
npm install --save react-video-stream
import React from 'react'
import { Video } from 'react-video-stream'
const url = 'http://example.com/manifest.mpd'
const options = {
requestHeader: 'Authorization',
requestToken: 'access_token'
}
const App = () => {
return (
<div>
<Video
className='video-class'
controls={true}
autoPlay={true}
options={options}
remoteUrl={url}
/>
</div>
)
}
export default App
MIT © AlsiddigAhmed
FAQs
A React Library For Video And Audio Streaming With Custom Http Headers
The npm package react-video-stream receives a total of 1 weekly downloads. As such, react-video-stream popularity was classified as not popular.
We found that react-video-stream 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.