You are not logged in.

  • Index
  •  » General
  •  » [Feature request] Context menu "Add to smplayer's playlist"

#1 2008-08-02 10:10:19

ppsm
Member
Registered: 2007-11-17
Posts: 38

[Feature request] Context menu "Add to smplayer's playlist"

In parallel to smplayer, I use a multimedia player called ALSong.

The only reason I don't abandon ALSong is because it has a great feature. It adds in Windows explorer a context menu called "Add to ALSong's playlist" and a menu called "PLay folder in ALSong". All files in the folder and subfolders will be added to ALSong's playlist and played directly.

A similar feature in smplayer is definitely needed.


Besides, I like the ability of smplayer to remember the play position in a file, so it is possible to start playing a file where it was last stopped.

Maybe you could combine both features:

- a "Play folder in smplayer" context menu (or "Add to smplayer's playlist"menu)

- the ability to start again at the position of the last stop (in the playlist).


For example, if you have a playlist with 12 files and stop to listen at position  01:30 of file #2, next time you play the list using "Play folder in smplayer" context menu, smplayer would diretly go to file #2 in the list and start playing at position 01:30.

Offline

#2 2008-08-03 00:19:20

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2428

Re: [Feature request] Context menu "Add to smplayer's playlist"

ppsm wrote:

In parallel to smplayer, I use a multimedia player called ALSong.

The only reason I don't abandon ALSong is because it has a great feature. It adds in Windows explorer a context menu called "Add to ALSong's playlist" and a menu called "PLay folder in ALSong". All files in the folder and subfolders will be added to ALSong's playlist and played directly.

A similar feature in smplayer is definitely needed.

For that I think it's necessary to add something to the Windows registry. I don't know anything about Windows programming. The current code which adds some options to the Windows explorer was contributed by another person.

A patch which adds an option to the Windows explorer to add all files in a directory to the playlist is welcome (or at least that someone tells me the string that should be added to the registry).

ppsm wrote:

Besides, I like the ability of smplayer to remember the play position in a file, so it is possible to start playing a file where it was last stopped.

Maybe you could combine both features:

- a "Play folder in smplayer" context menu (or "Add to smplayer's playlist"menu)

- the ability to start again at the position of the last stop (in the playlist).


For example, if you have a playlist with 12 files and stop to listen at position  01:30 of file #2, next time you play the list using "Play folder in smplayer" context menu, smplayer would diretly go to file #2 in the list and start playing at position 01:30.

I think this also was requested:
http://smplayer.berlios.de/forums/viewt … 1538#p1538


RVM

Offline

#3 2008-08-03 08:54:23

ppsm
Member
Registered: 2007-11-17
Posts: 38

Re: [Feature request] Context menu "Add to smplayer's playlist"

rvm wrote:

A patch which adds an option to the Windows explorer to add all files in a directory to the playlist is welcome (or at least that someone tells me the string that should be added to the registry).

Obviously, that is the case. I have very limitted programming experience, so I doubt I could do this. What development software would you suggest to develop such a patch? Do you offer tutorials about how to develop a patch for smplayer?

rvm wrote:

I think this also was requested:
http://smplayer.berlios.de/forums/viewt … 1538#p1538

True, same request. I also have an audio book with several chapters, and I need to remember the position of the last played chapter and the position in this chapter.

But reading the post, I understand it is not quite solved. What way should I go? Should I start building playlists? Maybe you implement a mecanism that throws a file out of the playlist after the file is fully played (and save the modified playlist without the file).

Offline

#4 2008-08-03 13:03:15

Ian
Member
Registered: 2008-07-09
Posts: 53

Re: [Feature request] Context menu "Add to smplayer's playlist"

rvm wrote:

A patch which adds an option to the Windows explorer to add all files in a directory to the playlist is welcome (or at least that someone tells me the string that should be added to the registry).

Do you mean, to add the context-menu for folders? If I'm not mistaken it's in HKEY_CLASSES_ROOT\Folder\Shell. Perhaps this could be useful to know more about the registry entry:
http://www.suodenjoki.dk/us/productions … prompt.htm
Or
http://windowsitpro.com/article/article … lorer.html

I think, with HKEY_CLASSES_ROOT\Folder\Shell, it is possible to create a script that could get all the media files in a directory and put it in the playlist.

Before, I tried to portablize Winamp, include the explorer context-menu. I realized, it is much faster to load multiple files to Winamp using [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{46986115-84D6-459c-8F95-52DD653E532E}\LocalServer32]. If I just use /ADD \"%1\" in the registry, it will take much time to load many audio files.
Hope it helps.. somehow.

Offline

#5 2008-08-03 14:32:57

redxii
Member
Registered: 2007-11-19
Posts: 138

Re: [Feature request] Context menu "Add to smplayer's playlist"

Use HKEY_CLASSES_ROOT\Directory\shell, not HKEY_CLASSES_ROOT\Folder\shell

This was from another thread:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Play with SMplayer]

[HKEY_CLASSES_ROOT\Directory\shell\Play with SMplayer\command]
@="\"C:\\Program Files\\SMPlayer\\smplayer.exe\" -add-to-playlist \"%1\""

HKEY_CLASSES_ROOT\Directory\shell won't add it to the recycle bin. This will also work per-user:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\Directory\shell\Play with SMplayer]

[HKEY_CURRENT_USER\Software\Classes\Directory\shell\Play with SMplayer\command]
@="\"C:\\Program Files\\SMPlayer\\smplayer.exe\" -add-to-playlist \"%1\""

Also.. make it optional.

Offline

#6 2008-08-03 15:05:49

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2428

Re: [Feature request] Context menu "Add to smplayer's playlist"

Thanks.

I'll experiment with this when I have a little bit of time.


RVM

Offline

#7 2008-12-27 10:10:51

Prophet Zarquon
Guest

Re: [Feature request] Context menu "Add to smplayer's playlist"

Oh YEAH!  Thanks, guys!  I had to remove the quotes and make it look like this:

C:\Program Files\SMPlayer\smplayer.exe -add-to-playlist "%1"

But now it queues up whole Folders (but not the Recycling Bin) (oh, and in order!) when I right click on a folder.

Since my favorite lady likes to keep her My Music folder as a treed shortcut menu in her Toolbar at the lower right of the screen, this is a lifesaver!  She can now Click on My Music, Point at a Folder, Right Click on a SubFolder, and Click on "Play with SMPlayer" to play a whole folder (album) full of music!  She's very happy, and I just learned a new skill.

I am going to customize the right click menu on my home machine...  I think I shall start with "Stream to PSP using MPlayer"!!!  Freakin' awesome.

#8 2008-12-27 17:41:57

ppsm
Member
Registered: 2007-11-17
Posts: 38

Re: [Feature request] Context menu "Add to smplayer's playlist"

It works, thanks for the tip. To be more specific, here are the steps that worked for me:

Under the key HKEY_CLASSES_ROOT\Directory\shell, create a New Key "Play in SMPlayer".
Under the key HKEY_CLASSES_ROOT\Directory\shell\Play in SMPlayer, create a new key "command".
Under the key HKEY_CLASSES_ROOT\Directory\shell\Play in SMPlayer\command, create a new value (string type). Give it no name, just the value C:\Program Files\SMPlayer\smplayer.exe -add-to-playlist "%1".

The effect will be immediate, no need to reboot Windows.

The only problem with this method: if smplayer is already playing a playlist generated by this context menu, and if we point to a second folder and select "Play in SMPlayer", this will add the name of the folder to the playlist, not all playable files in the second folder. This is obviously a bug in the -add-to-playlist function. This assumes that the option Interface > Instances > "Use only one running instance of SMPlayer" is switched on.

Could this slight bug be addressed? Otherwise, this trick on Windows registry works like a charm.

Offline

#9 2008-12-28 01:41:08

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2428

Re: [Feature request] Context menu "Add to smplayer's playlist"

Actually currently passing a directory in the option -add-to-playlist is not supported. It works the first time (when there's no instance of smplayer running) because in that case the option -add-to-playlist is ignored.


RVM

Offline

#10 2008-12-28 11:59:27

ppsm
Member
Registered: 2007-11-17
Posts: 38

Re: [Feature request] Context menu "Add to smplayer's playlist"

I see. Could you then create a new argument of the command line that actually passes the content of a directory to a playlist?

Offline

#11 2008-12-28 13:49:17

rvm
Administrator
From: Spain
Registered: 2007-10-02
Posts: 2428

Re: [Feature request] Context menu "Add to smplayer's playlist"

I guess in the future I could improve the -add-to-playlist option to support directories, but right now I think the better would be to call smplayer without the -add-to-playlist option, that would actually add the files in the directory to the playlist (although cleaning the previous contents).


RVM

Offline

#12 2009-11-06 21:13:53

Bob
Guest

Re: [Feature request] Context menu "Add to smplayer's playlist"

Actually any solution exist ?

I use :

C:\Program Files\SMPlayer\smplayer.exe -add-to-playlist "%1"

but after first he add just the name directory

#13 2009-11-06 21:18:22

Bob
Guest

Re: [Feature request] Context menu "Add to smplayer's playlist"

drag an drop of directory doesn't do anything for me hmm

Win XP

  • Index
  •  » General
  •  » [Feature request] Context menu "Add to smplayer's playlist"

Board footer

Powered by PunBB
© The SMPlayer Project