0

Bit of a beginner here, so would appreciate all the help I can get.

Setting up an electron project and one of its features will allow me to watch live streams. In electron, I can load a URL into a browser window but if I load the live stream directly into the window, it's damnnn slow.

I've now loaded the stream using livestreamer from the command line, but how can i get a URL to use within my electron app?

For example, I can do this:

BrowserWindow.loadURL("https://twitch....");

But I'm looking for something like:

BrowserWindow.loadURL("localhost:PORT");

I did pass the --player-external-http, which prints an IP 127.0.0.1:PORT to the terminal, but when loaded, it starts a download, rather than a video.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.