L
L
LOtaku2020-12-30 13:38:53
System administration
LOtaku, 2020-12-30 13:38:53

How to add video playback via VLC in FTP mount (Windows network location)?

Good afternoon!
I'm looking for a way to add support for playing video files from Windows Explorer when viewing files from a remote location (Network FTP).
If I copy the location of the file and paste it into the player, then everything works, but I would like to double-click on the file and not do any unnecessary actions.
Now when you click on a file, Windows gives this: "This file does not have a program associated with it to perform this action."
XtN.png
File properties:
x46.png
What I would like to see:
Option 1 . When you click on a file with extensions .mp4, .avi and the like, VLC is launched with a link to the file passed to it. Probably something like: vlc.exe " ftp://192.168.1.1/Main/Я48257.mp4 "
Option 2. When you right-click, a new item "Open with VLC" appears in the explorer's context menu, when you click on it, everything happens the same as in step 1.
Of course, it's better to have 1 option, but the 2nd one is also suitable.
The application contains the contents of a .reg file that adds a new menu to the explorer context menu (Right Click).
In this example, the menu appears when right-clicking in folders and on the desktop (in an empty area).

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd_here]
@="Командная строка (CMD)"
"Icon"="cmd.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd_here\command]
@="\"C:\\Windows\\System32\\cmd.exe\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmdPrompt]
@="Командная строка (CMD)"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\cmdPrompt\command]
@="\"C:\\Windows\\System32\\cmd.exe\" \"cd %1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_here]
@="Командная строка (CMD)"
"Icon"="cmd.exe"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_here\command]
@="\"C:\\Windows\\System32\\cmd.exe\""

If you take the second option, it remains only to find out which registry key is responsible for the context menu of the file in Remote Share FTP mode (if there is one at all).
I will be very glad for the help, I think it will be useful to many.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question