question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Start peerflix + vlc from nw.js

See original GitHub issue

I’m developing app on nw.js, for start peerflix + vlc i do

var exec = require('child_process').exec, child; child = exec(nwDir + '\\nw.exe '+ nwDir +'\\peerflix\\app.js "' + link + '" -v -- --meta-title "' + theTitle + '"');

Is there another way to do this? (if i will use peerflix as module)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
jarubacommented, Apr 15, 2016

You can include peerflix as a node.js module to get the streaming URL, see: https://github.com/mafintosh/peerflix/issues/211#issuecomment-116320318

Then you can either start a child process with VLC and the streaming URL, or maybe generate a playlist file with all the streaming URLs and start that.

Or maybe you want to play it directly in NW.js, in which case you’ll need to rebuild NW.js with full video support, so you can play the streaming URL with the <video> tag directly.

An alternative to rebuilding NW.js with full video support is using WebChimera.js, and either create your own player or use an already built player (WebChimera.js Player). As WebChimera.js uses libVLC internally, it will support any media that VLC would.

0reactions
jarubacommented, Apr 18, 2016

@mafintosh This looks like it’s simply missing from the code because someone forgot to add it. Can you or @webkitten push it to the project.

I’m still using my peerflix fork in some projects, so I can’t. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Peerflix: Stream Torrents With VLC Or MPlayer Via Command ...
Peerflix is an experimental video streaming BitTorrent client for Node.js. The tool can be used to stream video torrents via command line ...
Read more >
How to stream torrent videos in vlc (node js peerflix) - YouTube
Hi guys, today you will know how to directly stream torrent in vlc.1. First We need to know the version of your windows...
Read more >
How To Stream Torrent Video In VLC On Windows PC
Follow the steps to stream any torrent video on VLC. ... Node.js,; Peerflix (a torrent client for node.js), and; A simple command using ......
Read more >
Peerflix - npm.io
peerflix. Streaming torrent client for Node.js npm install -g peerflix ... will pass --fullscreen to vlc peerflix magnet-link --mplayer --subtitles ...
Read more >
Peerflix or how to stream torrents - Desde Linux
sudo add-apt-repository ppa: chris-lea / node.js sudo apt-get update sudo apt-get install nodejs ... peerflix http: //url-del-torrent.torrent --vlc.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found