Posted:
March 6th, 2009, 1:26 am
by Nyx
I realise Im being a little cheeky here
This is in Vista (happens in Windows 7 too, probably XP as well but not tested)
Im currently trying to write a basic mp3 player for myself. I noticed this bug in Xion which is sort of along the lines of problem I have.
I have currently associated the .mp3 extension to my program, and if I select an mp3, and double click it, that works.
If I select 2 or more *UP TO 15* files, that works.
If I use the 'play all' button with 15 or less files in the directory, that works.
BUT, if I highlight over 15 files or I press the play all button with over 15 files, it still opens in windows media player. Cheeky Microsoft
It appears you have to set your program as a 'default music player' in windows in "Default Programs" -> "Set program access and computer defaults", but I have no idea how to add mine to the registry or programatically. (I notice winamp and iTunes have sussed it) but I just wondered if you had cracked this over 15 files problem.
Thanks,
Nyx.
Posted:
March 6th, 2009, 6:45 pm
by Nyx
Just if it helps you at any point :
Here is the section I added to my registry file last night which makes my player appear in the "Default Programs" -> "Set Program Access and Computer Defaults", but this doesn't help to solve the problem I discovered.
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Media\NixPlayer]
@="NixPlayer"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Media\NixPlayer\Capabilities]
"ApplicationDescription"="NixPlayer is an MP3 player."
"ApplicationName"="NixPlayer"
"ApplicationIcon"="C:\\NixPlayer.exe,0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Media\NixPlayer\Capabilities\FileAssociations]
".mp3"="NixPlayer.AssocFile.MP3"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Media\NixPlayer\DefaultIcon]
@="C:\\NixPlayer.exe,0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Media\NixPlayer\InstallInfo]
"IconsVisible"=dword:00000001
@=""
"HideIconsCommand"=hex(2):22,00,43,00,3a,00,5c,00,4e,00,69,00,78,00,50,00,6c,\
00,61,00,79,00,65,00,72,00,2e,00,65,00,78,00,65,00,22,00,20,00,2f,00,48,00,\
69,00,64,00,65,00,00,00
"ReinstallCommand"=hex(2):22,00,43,00,3a,00,5c,00,4e,00,69,00,78,00,50,00,6c,\
00,61,00,79,00,65,00,72,00,2e,00,65,00,78,00,65,00,22,00,20,00,2f,00,48,00,\
69,00,64,00,65,00,00,00
"ShowIconsCommand"=hex(2):22,00,43,00,3a,00,5c,00,4e,00,69,00,78,00,50,00,6c,\
00,61,00,79,00,65,00,72,00,2e,00,65,00,78,00,65,00,22,00,20,00,2f,00,48,00,\
69,00,64,00,65,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Media\NixPlayer\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Media\NixPlayer\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Media\NixPlayer\shell\open\command]
@="C:\\NixPlayer.exe"
Cheers,
Nyx.
Posted:
March 6th, 2009, 9:31 pm
by logokas
Xion didn't have single instance feeding before, either. That was fixed in a beta after 100, 102 or something. Up until then, it also fed the files one at a time, not generating a playlist of all files selected, and showing the warning dialog.