valiafetisov / vlc-simple-player Goto Github PK
View Code? Open in Web Editor NEWSimple npm package that starts VLC player via command-line together with HTTP interface enabled
Simple npm package that starts VLC player via command-line together with HTTP interface enabled
Working fix:
app.js line 52:
this.process.on('close', (code) => {
this.process.kill('SIGINT')
})
is there any other events other then statuschange or error like paused resumed or stopped?
Hello!
Intend to open vlc player from a file from nginx server. And it is working.
Wish to use statuschange event listener, but it is throwing an error:
unexpected HTTP request error
SyntaxError: Unexpected token < in JSON at position 0
Code snippet which is being used is:
let player = new VLC('http://localhost:8080/prv/01.mp4', {arguments: ['--fullscreen', '--no-video-title']});
player.on('statuschange', (error, status) => {
if (error) return console.error(error)
if (status.state == 'stopped') {
}
});
And would like to add another files to playlist from server too.
player.request('/requests/status.json?command=in_enqueue&input=http://localhost:8080/prv/02.mp4', () => {})
Please help.
Thanks.
I just can't figure it out... I need a callback, tell me how to implement it
When node application using "vlc-simple-player' starts a movie, and then this movie is shut down in VLC player, node application crashes with the error message, see screenshot
This bug can be very easily fixed by adding a question mark in the line 53 of app.js, that is, instead of
this.process.on('close', (code) => { this.process.exit() })
use
this.process.on('close', (code) => { this.process?.exit() })
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.