andy-portmen / open-in-vlc

a browser extension to send media links to VLC media player
https://webextension.org/listing/open-in-vlc.html
Mozilla Public License 2.0
114 stars 54 forks source link

Ultimate solution of absence of custom URL protocols in Vlc media player for security reasons #47

Open trimechee opened 1 month ago

trimechee commented 1 month ago

Hello Mr @andy-portmen , after trying the new verson of our beloved Open-in-vlc with several streaming sites, it works with all streaming websites even with hls videos, thank you very much ! 💯 🥇

But I noticed a strange thing especially on the vidmolly platform and my favorite streaming sites, in 2 streaming platforms, sometimes it works, sometimes VLC shows me an error message....

sometimes it work with the 2 first media players, sometimes it doesn't work , but it works perfectly with all the rest of media players , thant you ! (my problem is other media player has only 720p full HD quality whereas the first media player has standard 480p quality which is better for me because my wifi and cpu are not very strong ) https://v5.voiranime.com/anime/kimetsu-no-yaiba-4-vf/

I notice in the new version of the Cat-catch extension, changelog says:

" Added Invoke Local Program settings. If the program does not have a calling protocol, you can use URLProtocol to help the program register a calling protocol. See specific usage at Invoke Local Protocol."

"The system allows developers to create custom URL protocols to launch specific applications or environments. The general format is {protocol_name}://{launch_parameters}.

For example:

PotPlayer: potplayer:// WeChat: weixin:// Microsoft VS Code: vscode:// And so on. Opening these protocols in a browser will launch the corresponding applications.

However, some programs do not provide custom URL protocols for security reasons, such as VLC Player. In these cases, this project becomes necessary.

The principle of this project is to act as an intermediary. It registers itself as any protocol name, then selects the target application. When a protocol is opened, it looks for the corresponding target application, processes and corrects the parameters, passes the parameters to the target application, and then launches it. "

https://github.com/xifangczy/URLProtocol?tab=readme-ov-file#custom-url-protocol-

https://o2bmm.gitbook.io/cat-catch/docs/invoke

https://github.com/xifangczy/cat-catch/releases/tag/2.5.3

trimechee commented 1 month ago

EDIT : Unfortunately even URLProtocol and cat-catch do not work with some streaming platforms......