ytui-music icon indicating copy to clipboard operation
ytui-music copied to clipboard

Change the mpv binding for rust to something else

Open sudipghimire533 opened this issue 3 years ago • 3 comments

Ytui-music currently use https://github.com/ParadoxSpiral/libmpv-rs. While it is pretty good but seems like recently, it is not in great sight of author and haven't received any update since 2002.

Also cross compiling of ytui is not possible only because of this crate. So it might be preferable to have something else. I can't find nothing similar so another binding should be created?

If you happen to clash here anytime I would be very much glad to see you pushing it forward.

sudipghimire533 avatar Dec 07 '21 11:12 sudipghimire533

Hi @sudipghimire533 , perhaps this one can help? https://github.com/RustAudio/rodio

it's not a drop-in replacement for mpv but it serves the purpose of playing audio files and it is well maintained.


Unrelated news: I've been trying to package this application for nixpkgs, and even though it builds and runs, I can't get it to play any audio. MPV by itself works fine, though.

Does the application produce any logs when something goes wrong with mpv? I could not find anything.

gvolpe avatar Oct 11 '22 16:10 gvolpe

Hello @gvolpe Thanks for your suggestion but rodio will not handle playback from youtube links which mpv does.

Also thank you very much for taking time to package it :)

Currently the app is not producing any logs. You might try playing some other video from ytui-music, When you play something what shows in the bottom status bar.

Also I am working to re-manage this project here, might be of your interest: new.ytui-music

sudipghimire533 avatar Oct 12 '22 06:10 sudipghimire533

What about libvlc?

JuniorSuperTux avatar Mar 26 '23 11:03 JuniorSuperTux