Context Menus

Feature requests for VLC.
Twisted_Daemon
Blank Cone
Blank Cone
Posts: 31
Joined: 09 May 2007 08:26
Operating System: Windows / Linux

Context Menus

Postby Twisted_Daemon » 02 Aug 2007 10:28

The context menus seem to work when I'm selecting a folder, I get the usual play with VLC player and add to VLC playlist etc.

However I don't get this when I'm selecting a media file.

Anyone know how to fix this?
To fear death, is only to limit life.

CloudStalker
Big Cone-huna
Big Cone-huna
Posts: 2581
Joined: 14 Jan 2007 19:00
VLC version: OVER 9000!!!
Operating System: It's...blue screen
Location: Heaven? No no. What's that other place that starts with an "H"? Oh yes: Home. ^_^

Re: Context Menus

Postby CloudStalker » 02 Aug 2007 18:34

"Open with..."? :P

Twisted_Daemon
Blank Cone
Blank Cone
Posts: 31
Joined: 09 May 2007 08:26
Operating System: Windows / Linux

Re: Context Menus

Postby Twisted_Daemon » 03 Aug 2007 18:00

There is the open with command but there should really be be a play with VLC context menu for the media files themselves and not just folders. Is there a file I can alter to get that or something?
To fear death, is only to limit life.

3breadt
Big Cone-huna
Big Cone-huna
Posts: 827
Joined: 19 Mar 2006 11:37
Operating System: Win7 Pro / OS X 10.7
Location: Paderborn, Germany
Contact:

Re: Context Menus

Postby 3breadt » 07 Aug 2007 11:59

In Explorer go to Extras>Folder preferences(Dunno if that's the correct english name)>Filetypes. There you can edit how all files are handled. If you want it the easy way, just reinstall VLC and select the file types you want to be opened by default with vlc and then you'll have what you want.
-- 3breadt (aka altglass)

Twisted_Daemon
Blank Cone
Blank Cone
Posts: 31
Joined: 09 May 2007 08:26
Operating System: Windows / Linux

Re: Context Menus

Postby Twisted_Daemon » 20 Sep 2007 21:47

It's not a question of file association, that's all fine.

When a FOLDER is right clicked the following options are given:
Add to VLC's Media Player's Playlist (Whacks the directory to the back of the playlist)
Play VLC Media Player (Plays the directory right away)

When single or multiple media files are right clicked there is just the 'Play' option is available. This will play one of the files automatically, but there is no option to just add it to the end of the playlist.
To fear death, is only to limit life.

CloudStalker
Big Cone-huna
Big Cone-huna
Posts: 2581
Joined: 14 Jan 2007 19:00
VLC version: OVER 9000!!!
Operating System: It's...blue screen
Location: Heaven? No no. What's that other place that starts with an "H"? Oh yes: Home. ^_^

Re: Context Menus

Postby CloudStalker » 20 Sep 2007 22:00

Twisted_Daemon would you like me to move this to the Feature Request topic? I think that it would be best there.

Twisted_Daemon
Blank Cone
Blank Cone
Posts: 31
Joined: 09 May 2007 08:26
Operating System: Windows / Linux

Re: Context Menus

Postby Twisted_Daemon » 20 Sep 2007 22:07

Yis please : )
To fear death, is only to limit life.

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: Context Menus

Postby funman » 21 Sep 2007 00:04

or you can enable 'one instance' mode, and that way when you open a file it'll be added to the playlist of the first instance of vlc.

you can choose wether or not it will start playing immediately, or if the file previously playing will continue

Twisted_Daemon
Blank Cone
Blank Cone
Posts: 31
Joined: 09 May 2007 08:26
Operating System: Windows / Linux

Re: Context Menus

Postby Twisted_Daemon » 21 Sep 2007 00:19

I have the one instance option enabled already.

I am aware that in VLC's preferences there is the option to play the file immediately or just add it to the playlist, however I would prefer to choose when I right click the file from a context menu.

It just seems odd to me that the option is available for a directory but not single media files.
To fear death, is only to limit life.

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: Context Menus

Postby funman » 21 Sep 2007 01:32

The code used for context menus is at:
http://trac.videolan.org/vlc/browser/tr ... si.in#L224

if you understand how to fix it, please tell it here

CloudStalker
Big Cone-huna
Big Cone-huna
Posts: 2581
Joined: 14 Jan 2007 19:00
VLC version: OVER 9000!!!
Operating System: It's...blue screen
Location: Heaven? No no. What's that other place that starts with an "H"? Oh yes: Home. ^_^

Re: Context Menus

Postby CloudStalker » 21 Sep 2007 04:14

Yis please : )
Let it be written, let it be done.

3breadt
Big Cone-huna
Big Cone-huna
Posts: 827
Joined: 19 Mar 2006 11:37
Operating System: Win7 Pro / OS X 10.7
Location: Paderborn, Germany
Contact:

Re: Context Menus

Postby 3breadt » 21 Sep 2007 08:37

I think the problem is that VLC writes the shell commands like "Add to playlist" directly into HKCR/{.EXT}/shell
Instead they should go to HKCR/VLC{.EXT}/shell. Shell commands that are directly written into the extensions's key are not interpreted. Only those in the key associated by the default value of the extension's key. And this key does only contain the "Play" command atm.

Fix:

Code: Select all

228 !macro AddContextMenu EXT 229 WriteRegStr HKCR VLC${EXT}\shell\PlayWithVLC "" "Play with VLC media player" 230 WriteRegStr HKCR VLC${EXT}\shell\PlayWithVLC\command "" '$INSTDIR\vlc.exe --started-from-file --no-playlist-enqueue "%1"' 231 232 WriteRegStr HKCR VLC${EXT}\shell\AddToPlaylistVLC "" "Add to VLC media player's Playlist" 233 WriteRegStr HKCR VLC${EXT}\shell\AddToPlaylistVLC\command "" '$INSTDIR\vlc.exe --started-from-file --playlist-enqueue "%1"' 234 !macroend 235 236 !macro DeleteContextMenu EXT 237 DeleteRegKey HKCR VLC${EXT} 238 DeleteRegKey HKCR VLC${EXT} 239 !macroend
I haven't looked at the other parts of the code were the actual VLC.ext entries are written but this fix for the macros should work.
Last edited by 3breadt on 21 Sep 2007 09:18, edited 1 time in total.
-- 3breadt (aka altglass)

ssbssa
Cone that earned his stripes
Cone that earned his stripes
Posts: 107
Joined: 03 May 2007 22:00
VLC version: 2.0.2
Operating System: Windows

Re: Context Menus

Postby ssbssa » 21 Sep 2007 08:43

the problem is, VLC{.EXT} only exists when the file type associations are chosen.

3breadt
Big Cone-huna
Big Cone-huna
Posts: 827
Joined: 19 Mar 2006 11:37
Operating System: Win7 Pro / OS X 10.7
Location: Paderborn, Germany
Contact:

Re: Context Menus

Postby 3breadt » 21 Sep 2007 09:13

Why is that a problem? The other code is also executed only when file type associations are chosen in the setup. But the setup doesn't write the associations correctly.
-- 3breadt (aka altglass)

ssbssa
Cone that earned his stripes
Cone that earned his stripes
Posts: 107
Joined: 03 May 2007 22:00
VLC version: 2.0.2
Operating System: Windows

Re: Context Menus

Postby ssbssa » 21 Sep 2007 09:50

they are written when Context Menus are chosen, not file type associations

3breadt
Big Cone-huna
Big Cone-huna
Posts: 827
Joined: 19 Mar 2006 11:37
Operating System: Win7 Pro / OS X 10.7
Location: Paderborn, Germany
Contact:

Re: Context Menus

Postby 3breadt » 21 Sep 2007 15:23

Oh. But anyway I don't see the point in separating contextmenu-entries and file assocations.
If at all you could make contextmenu-entries only chooseable when file associations are selected.
-- 3breadt (aka altglass)

ssbssa
Cone that earned his stripes
Cone that earned his stripes
Posts: 107
Joined: 03 May 2007 22:00
VLC version: 2.0.2
Operating System: Windows

Re: Context Menus

Postby ssbssa » 21 Sep 2007 15:53

i will send a patch for this over the weekend (i will keep it seperated thou)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Context Menus

Postby Jean-Baptiste Kempf » 23 Sep 2007 02:12

Is this the patch you just sent to the mailing list?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ssbssa
Cone that earned his stripes
Cone that earned his stripes
Posts: 107
Joined: 03 May 2007 22:00
VLC version: 2.0.2
Operating System: Windows

Re: Context Menus

Postby ssbssa » 24 Sep 2007 09:05

yes it is

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Context Menus

Postby Jean-Baptiste Kempf » 24 Sep 2007 09:28

applied :D
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Twisted_Daemon
Blank Cone
Blank Cone
Posts: 31
Joined: 09 May 2007 08:26
Operating System: Windows / Linux

Re: Context Menus

Postby Twisted_Daemon » 25 Sep 2007 12:26

Thanks for applying the features to the single / multiple file context menu. It's great :)

However now the context menus don't appear when you select a directory. I was hoping that the context menus were being applied to both.
To fear death, is only to limit life.

ssbssa
Cone that earned his stripes
Cone that earned his stripes
Posts: 107
Joined: 03 May 2007 22:00
VLC version: 2.0.2
Operating System: Windows

Re: Context Menus

Postby ssbssa » 25 Sep 2007 12:50

forgot to test the directories too.
i found the problem, will send the patch tomorrow.

Twisted_Daemon
Blank Cone
Blank Cone
Posts: 31
Joined: 09 May 2007 08:26
Operating System: Windows / Linux

Re: Context Menus

Postby Twisted_Daemon » 25 Sep 2007 12:56

Awesome.

Many thanks :D
To fear death, is only to limit life.

CloudStalker
Big Cone-huna
Big Cone-huna
Posts: 2581
Joined: 14 Jan 2007 19:00
VLC version: OVER 9000!!!
Operating System: It's...blue screen
Location: Heaven? No no. What's that other place that starts with an "H"? Oh yes: Home. ^_^

Re: Context Menus

Postby CloudStalker » 25 Sep 2007 17:03

Thank you. :)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Context Menus

Postby Jean-Baptiste Kempf » 26 Sep 2007 12:56

Applied for tomorrow's installer.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player Feature Requests”

Who is online

Users browsing this forum: No registered users and 7 guests

cron