Comments (4)
Since youtube-tui uses mpv internally, it would be possible to take advantage of preexisting mpv scripts.
For example, I use this plugin called mpv-discord to tell everyone that I am not an average spotify user, I would just install the plugin and load it by adding mpv load-script /etc/mpv/scripts/discord.lua
to the end of my launch command in ~/.config/youtube-tui/commands.yml
.
There are multiple mpv mpris plugins available, and I assume that the setup process is similar to how I setup mpv-discord.
from youtube-tui.
I'm not familiar with the mpv load-script
syntax you provided. When I ran mpv --script /path/to/mpris/plugin.so $url
the media showed up in my MPRIS client, but when I tried what you suggested it did not.
Is this what you meant?
$ cat ~/.config/youtube-tui/commands.yml
launch_command: loadpage library ;; flush ;; history clear ;; key Esc 0 ;; key Up 0 ;; key Up 0 ;; key Left 0 ;; key Enter 0 ;; mpv load-script /path/to/mpris/plugin.so
Thank you for your help!
from youtube-tui.
out.mp4
Since I use arch (btw), mpv-mpris installs to /etc/mpv/scripts/mpris.so by default. As shown in the video i was able to get it working
If you want to try and see what went wrong, you can run commands while running the tui by pressing :
and entering the command u want to do. If the command ran without output then ur proabably good to go, or else if u get -4 exit code something bad happened, if its -12 then its file not found.
from youtube-tui.
Thanks for the help.
Interesting... the MPRIS plugin doesn't work when I play a video for the first time, though it does work after I either play another video, or pause the first video, etc...
from youtube-tui.
Related Issues (20)
- Feature request embedded audio and video HOT 11
- does this have a youtube live chat feature? HOT 1
- How to change video resolution HOT 1
- cargo install fails on Ubuntu 22.04 HOT 4
- Cannot install on mac m2 HOT 4
- use of unstable library feature 'is_some_and' HOT 7
- Version Mismatch Error and Thread Panic on Debian 12 HOT 3
- MPRIS HOT 1
- youtube-tui is being rewritten HOT 6
- How to sign in? HOT 4
- crashing on install HOT 1
- crash HOT 2
- Support for kitty graphics protocol
- Freezing immediately after doing almost anything HOT 3
- Not compiling HOT 3
- Add debian packages HOT 1
- attempting to open annihilates console HOT 5
- Getting error "Invalid Request: This helps protect our community. Learn more" HOT 1
- youtube-tui hangs on "loading channel details" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from youtube-tui.