Answer the question
In order to leave comments, you need to log in
How to control the browser in parallel with other applications?
In one window, for example, Photoshop is open for me. In the second window, a browser is opened with a Photoshop video tutorial on YouTube. The video has to be stopped and started constantly, switching from the browser to Photoshop and back. To do this, you need to change the focus of the windows, for example, moving the mouse back and forth, which is very annoying. How to make video stop/start without changing focus from photoshop to browser? For example by means of hot keys?
One option came to my mind - a virtual machine with a separate keyboard forwarded and a browser running. But it's kind of hard.
Interesting solutions for both Windows and Linux.
Answer the question
In order to leave comments, you need to log in
install mpv and yotube-dl
next, launch the IPC server and video with the desired video in the console (example):
mpv --input-ipc-server=/tmp/mpvsocket "https://www.youtube.com/watch?v=GYE2P7BWBAs"
echo '{ "command": ["set_property", "pause", true] }' | socat - /tmp/mpvsocket
echo '{ "command": ["set_property", "pause", false] }' | socat - /tmp/mpvsocket
echo "cycle pause" | socat - /tmp/mpvsocket
The second monitor in your case is not a whim but a necessity!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question