Bluegrams / YoutubeDLSharp

A simple .NET wrapper library for youtube-dl and yt-dlp
BSD 3-Clause "New" or "Revised" License
163 stars 31 forks source link

Cross-Platform usage #54

Open aleh4d opened 1 month ago

aleh4d commented 1 month ago

Hi, I have an app that may run on windows, Android and IOS, how to use YoutubeDLSharp cross-platform?

And if I only need links of videos, may I omit path or download of FFmpeg?

DursyArts commented 3 weeks ago

I think this runs on top of yt-dlp.exe, like a wrapper, because you need to specify yt-dlp.exe path. So you cant just run an .exe file on Android or IOS. At least in my understanding you could build a webservice though and then download the info from an intermediate server that runs it for you

aleh4d commented 3 weeks ago

yt-dlp has three binaries available:

yt-dlp | Platform-independent zipimport binary. Needs Python (recommended for Linux/BSD) yt-dlp.exe | Windows (Win7 SP1+) standalone x64 binary (recommended for Windows) yt-dlp_macos | Universal MacOS (10.15+) standalone executable (recommended for MacOS)

can we use different binaries instead of .exe on other platforms?

(Or would it be better to have a procedure call with parameter defining platform? Or detect platform inside the property assignment?)