streamlink / streamlink-twitch-gui

A multi platform Twitch.tv browser for Streamlink
https://streamlink.github.io/streamlink-twitch-gui/
MIT License
2.68k stars 202 forks source link

Add external command support to open Twitch URLs/pages/streams #441

Closed DebugDotLog closed 7 years ago

DebugDotLog commented 7 years ago

Increase external application support by adding a command interface which will handle the following:

It may be useful to passthrough commands to streamlink, when possible. For example, allow an external application to launch a stream + chat and specify the media player to be used.

My immediate use case for this feature will be to open Twitch users' Channel Info pages via a custom Base command and Chatty's Livestreamer context menu option.

bastimeyer commented 7 years ago

Thanks again for the suggestion.

The feature is a bit limited by the buggy implementation of NWjs, which means that multiple actions can't be performed at once. This is caused by an incorrect order of the parameters which NWjs returns in the event listener. Unfortunately, this can't be fixed on the application level.

The feature first needs to be enabled in the GUI settings menu (requires advanced settings to be enabled). These are the currently supported parameters (the wiki page will be updated once the next release gets published):