llealloo / audiolink

Audio reactive prefabs for VRChat
Other
364 stars 40 forks source link

Improve handling of search for YTDL executables #303

Closed techanon closed 5 months ago

techanon commented 6 months ago
float3 commented 6 months ago

under what scenarios?

float3 commented 6 months ago

https://docs.unity3d.com/Manual/VideoSources-FileCompatibility.html this is the reason we disabled it on linux

techanon commented 6 months ago

So it's an editor specific thing then. Ok.

float3 commented 6 months ago

I don't remember what format ytdlp serves when the source is youtube, but maybe there's a way to get it to serve a specific format? if that was the case I would be okay with having it available on linux

float3 commented 6 months ago

I'm not sure if we want to support ytdl

float3 commented 6 months ago

So it's an editor specific thing then. Ok.

did you test your changes on mac in editor?

techanon commented 6 months ago

did you test your changes on mac in editor?

That specific Mac part is ported from the changes I made to VideoPlayerShim based on the feedback from an M-Series Mac user. The shim uses somewhat different search logic, but the path requirement for m-series is the same.

I'm not sure if we want to support ytdl

Is there a reason why not? Also it's all local side. Isn't it better to support the canonical name of ytdl as well as the ytdlp fork when searching for a users local install? The search logic prioritizes VRChat's official install first anyways, as well as ytdlp being searched for first in the list of possible names.

pema99 commented 5 months ago

Looks sane overall. Perhaps there should be a way to clear the custom path you've set previously though?

techanon commented 5 months ago

The current way that the custom path gets cleared is by clicking the menu option to open the file select dialog, and then clicking cancel. This returns an empty string path which is detected as not provided, thus falling back on the auto-detect methods.

float3 commented 5 months ago

The current way that the custom path gets cleared is by clicking the menu option to open the file select dialog, and then clicking cancel. This returns an empty string path which is detected as not provided, thus falling back on the auto-detect methods.

yeah this is not an acceptable method of clearing the custom path

techanon commented 5 months ago

We can switch it to a menu toggle style. When active, selecting it again implicitly clears it, then to pick a new path, select the menu again. How's that sound?

pema99 commented 5 months ago

Sounds like an improvement to me

techanon commented 5 months ago

Meant to push to a separate branch.

pema99 commented 5 months ago

Got some conflicts now, probably with your other PR

techanon commented 5 months ago

@pema99 fixed.