GithubHelp home page GithubHelp logo

Comments (4)

Siriusmart avatar Siriusmart commented on September 7, 2024 1

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.

aanderse avatar aanderse commented on September 7, 2024

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.

Siriusmart avatar Siriusmart commented on September 7, 2024
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.

aanderse avatar aanderse commented on September 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.