
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
vlc-simple-player
Advanced tools
simple command-line vlc player with time and track status support via http interface
Simple module that starts VLC player via command-line together with HTTP interface enabled. It provides a unified API to start playing a file and to get information about current track.
npm install vlc-simple-player --save
(Please note you'll need VLC binary installed in your system, you can download it on official website)
var VLC = require('vlc-simple-player')
// start a fullscreen player
var player = new VLC('./path-to-your-movie/test.mp4')
// log current track time every second
player.on('statuschange', (error, status) => {
console.log('current time', status.time)
})
new VLC(path[, options]) – starts a VLC player in fullscreen
path – string path to the video file ./test.movoptions – object with additional options
{password: String} will set a custom password for the HTTP interface (instead of random, which can be accessed by player.getPassword() method, btw){port: Number} will set a custom port for the HTTP interface (instead of default 8080){arguments: Array} will replace default command-line arguments (--fullscreen, --loop, --no-video-title)player.on(eventName, callback) - registers an event
eventName – a string, available options are:
'error' – stderr callback with error as an argument'statuschange' – callback that fires every second if the movie is playingcallback – a function with error and status object as an argumentsplayer.request(path, callback) - exposed request method to the VLC HTTP interface
path – a string, HTTP GET path with response in JSON format. For example:
vlc.request('/requests/status.json?command=pl_pause') – toggles a pause.
list of HTTP requests and interface descriptioncallback – a function with error and status object as an argumentsplayer.process - exposed spawned processplayer.quit() – stops the movie and close the player (via SIGKILL)Please feel free to submit a pull request for a bug fix or new features
FAQs
simple command-line vlc player with time and track status support via http interface
We found that vlc-simple-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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.