Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
nw-f2cwa-play
Advanced tools
Ffmpeg to Canvas and Web Audio media playback for Node WebKit.
You will need ffmpeg to run this.
Install with
npm install nw-f2cwa-play
Module includes precompiled versions of binary memcpy module. Binary memcpy gives great performance boost alowing to play 1080p@60Hz movies. Have not tried 4K.
nw-f2cwa-play will try to load precompiled binary for your combination of version/platform/architecture. following combinations are supported: NW 0.7.5,0.8.4,0.8.6,0.9.2,0.10.0-rc1,0.10.2 for Linux 32/64, Windows 32
I have no OSX machine to prebuild OSX versions and include them in npm module. Contributors are welcome. Here is simple instructions to build for OSX.
nw-f2cwa-play will use pure JS less performant fallback if binary memcpy not available you may build memcpy module for your Node-Webkit version with nw-gyp see Node Webkit WiKi article.
Under Windows place ffmpeg.exe into vendor
directory or
on any platform pass ffmpeg path to player as option.
var
Player = require('nw-f2cwa-play').Player,
player;
player = new Player({
selector:'#cnv', // selector for canvas to render video
ffmpegPath: 'ffmpeg' // in case ffmpeg is available on standard path
});
player.openSrc('udp://@239.0.1.2:1234'); // pass stream url (rtp, udp, http ... anything supported by ffmpeg) or file path
// auto start playback
player.on('canplay',function(){
player.play();
})
player.on('time',function(time){
// time is current stream time in seconds
});
Seeking for streams allowing seeking (mostly files) is also supported:
player.openSrc(url,startPos);
to start playback from needed pos. startPos expressed in seconds.player.seek(seekPos);
seekPos is also expressed in seconds.See sample App.
This is experiment as for now. May produce unexpected results. Only files/streams with audio are supported, audio is also downsampled to mono for simpler processing.
FAQs
Ffmpeg to Canvas and Web Audio media playback for Node WebKit.
We found that nw-f2cwa-play 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.