In this article we’ll show you step by step how to transmit Torrent videos in the VLC media player, so you can play native Torrent videos with a simple trick we’ll explain.
What you need
To carry out the task we will use Node.js, Peerflix (a Torrent client for Node.js) and the insertion of two command lines from the CMD. And of course you will need to have the VLC player installed.
Setting up Node.js and Peerflix
The first thing we have to do is download the Node.js program, then you’ll have to go to the operating system’s search bar and search for “node.js” and select the program’s command line option.
Now we’ll have to download the Peerflix program in ZIP format and extract it into a folder on your computer.
At this point we return to the Node.js command prompt window and run the command
npm install -g peerflix
to install Peerflix.
Streaming the torrent with VLC
Now comes the part we like, where we stream the Torrent file with the VLC player. To do this we just have to copy the name of the Torrent file (without the extension) and paste it into this code
peerflix "magnet:?xt=urn:btih:5864DEDA0378A88A80D48C6BBF2B00FB6BE2DBBF" –vlc
The Torrent file in this line of code is 5864DEDA0378A88A80D48C6BBF2B00FB6BE2DBBF
Now copy the code into the command prompt window and press Enter and the file will play.
The only thing left is to accept the Windows Firewall alert so that node.js can communicate with the network.
As you can see, the task is quite simple, and although you have to open the CMD, the tasks you have to do in the command prompt window are very few. With this technique you’ll be able to watch videos from a Torrent file without needing to download the video file.