Code Monkey home page Code Monkey logo

Comments (4)

antonysimstonlivera avatar antonysimstonlivera commented on August 22, 2024 1

Hello!
I had tried.
Surprisingly, request error disappeared after changing port number and rebooting system.

Thanks.

from vlc-simple-player.

valiafetisov avatar valiafetisov commented on August 22, 2024

Hey @antonysimstonlivera, can you please tell me:

  1. Which version of the VLC are you using
  2. Which platform you're in

The below code works for me and I am able to add a second video to the playlist

const VLC = require('vlc-simple-player')

const VIDEO_1 = 'http://clips.vorwaerts-gmbh.de/VfE_html5.mp4'
const VIDEO_2 = 'http://techslides.com/demos/sample-videos/small.mp4'

let player = new VLC(VIDEO_1, {
  arguments: ['--fullscreen', '--no-video-title']
});

player.on('statuschange', (error, status) => {
  if (error) return console.error(error)
});

setTimeout(() => {
  player.request('/requests/status.json?command=in_enqueue&input=' + VIDEO_2, console.log)
}, 5000)

from vlc-simple-player.

antonysimstonlivera avatar antonysimstonlivera commented on August 22, 2024

Hello!
Using VLC media player 3.0.8 Vetinari in Ubuntu 18_0.

Thanks.

from vlc-simple-player.

valiafetisov avatar valiafetisov commented on August 22, 2024

Did you tried the code above?

Can you also try accessing VLC http API manually?

  1. Starting vlc with

    /path/to/vlc --extraintf http --http-password password --http-port 8080 http://clips.vorwaerts-gmbh.de/VfE_html5.mp4
    
  2. Opening http://:password@localhost:8080/requests/status.json in your browser? (you may need to replace localhost with ip address if you run it on a different machine)

  3. Post here what would you get/see

from vlc-simple-player.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.