Page 1 of 1

Protocol vlc:// for browser

Posted: 17 Aug 2021 10:46
by grey_rat
Potplayer allows you to accept links from browser potplayer://https://..... .
There is an extension that works with these links "PotPlayer YouTube Shortcut" https://addons.mozilla.org/ru/firefox/a ... -shortcut/

For VLC, I did not find information about something similar. There are complex ways to achieve the same
https://github.com/stefansundin/vlc-protocol
https://github.com/azrafe7/vlc4youtube/ ... terface.md

Does VLC have the function protocol :// ?
If not, can it be done?

Re: Protocol vlc:// for browser

Posted: 17 Aug 2021 15:00
by RĂ©mi Denis-Courmont
This is actually a terrible idea, as it would allow attackers to forcefully start VLC to open anything under their control and exploit any vulnerability in VLC or underlying libraries.

"Open with VLC" extensions where the user explicitly decides to use VLC are much much safer.

Re: Protocol vlc:// for browser

Posted: 17 Aug 2021 17:48
by grey_rat
If create a "White list," for example 127.0.01, youtube.com and dialog window "Allow to open links from site xxx?" Or create a "protocol support" option in VLC, in which the user will write the protocol name himself (this option is better because it will allow you to immediately use the "PotPlayer YouTube Shortcut" extension or others).
Can VLC open non-video related files? Is the danger of such links exaggerated if they are also in other programs?