livestreamer icon indicating copy to clipboard operation
livestreamer copied to clipboard

[question] how to setup a trigger when using --retry flags to wait for streams?

Open v1kn opened this issue 8 years ago • 2 comments

my livestreamer use case includes --retry-open and --retry-streams flags, to wait for twitch streams, and fire up mpv as soon as the stream goes live. However, I've been wanting to be able to simultaneously start a web browser with chat window of that stream.

Because livestreamer command is running both while waiting and when starting mpv, I cannot use bash tricks like ; or && to tie up the browser window to it.

How can I trigger another command the moment livestreamer goes from standby to streaming?

v1kn avatar Mar 27 '16 14:03 v1kn

Probably possible with an actual script. Not really a Livestreamer issue. Ask this nicely on unix.stackexchange.com and someone will probably do the script for you. :D

tp0 avatar Apr 02 '16 20:04 tp0

@tp0 I see, thanks for the suggestion. yeah stackexchange is a great resource.

v1kn avatar Apr 02 '16 22:04 v1kn