Recommended Posts

I made a gadget that shows WMP song information in the sidebar.

This gadget needs the song signature plugin. Once you install the winter funpack, you can delete all other crap that comes with it. Make sure the plugin is enabled in WMP.

Docked View:

post-62693-1175664879_thumb.jpg

Undocked View:

post-62693-1175664893_thumb.jpg

Download from Windows Live Gallery

I have submitted this to Gallery.live.com. But it's not available yet.

Known Issues:

1. The artwork will work only if you have folder.jpg in each album folder.

2. If folder.jpg is not present, it will show generic icon (same as what WMP11 uses).

3. It does not read artwork from the files itself. (I am working on it, but WMP API is seriously screwy on this.)

4. Long song/artist/album names will be trimmed.

Future Plans:

1. Better background graphic

2. Larger undocked view

3. Rating display

4. Artwork from files or may be amazon.

Lastly, I have used two images from WMP11. They are ? Microsoft.

Any feedback is much appreciated.

Edited by dhan
3. It does not read artwork from the files itself. (I am working on it, but WMP API is seriously screwy on this.)

I tried looking for that in the WMP 10 SDK using "player.currentMedia.getItemInfoByType(name, language, index)" to find out that if was left out on purpose I guess its the same for WMP 11 SDK.

Hey did you have any problem using the gadget ? The Live gallery team rejected my submission saying it won't install. :o

I think i might know the reason why. Did you select the folder and made it a zip file before renaming it from ".zip" to ".gadget"?

When you do that the zip file will have a folder inside with your files, what you want is to just have the files.

Zip -> folder_Name -> Files

Just highlight the files and right click Send To Compressed (zipped) folder so you get a nice .zip file like this

Zip -> files

Now you can rename it to a .gadget and send it to Gallery.live.com.

The Live team is correct, it does not install normally, I had to extract it and place it the gadgets folder manually. Looks good for a first attempt, one thing I would like it see it do is scroll the text if the title is too long and such.

I fixed it. The scrolling text part is on my things to do this weekend. :)

I tried looking for that in the WMP 10 SDK using "player.currentMedia.getItemInfoByType(name, language, index)" to find out that if was left out on purpose I guess its the same for WMP 11 SDK.

I tried that. Somehow I keep on getting errors with getItemInfoByType. Also the player context, I can't connect it to the current song without creating another instance of wmplayer, which also starts playing the same song!

I think i might know the reason why. Did you select the folder and made it a zip file before renaming it from ".zip" to ".gadget"?

When you do that the zip file will have a folder inside with your files, what you want is to just have the files.

Zip -> folder_Name -> Files

Just highlight the files and right click Send To Compressed (zipped) folder so you get a nice .zip file like this

Zip -> files

Now you can rename it to a .gadget and send it to Gallery.live.com.

Oh damn, you are right. Fixed it. Thanks. :)

Edited by dhan
Also the player context, I can't connect it to the current song without creating another instance of wmplayer, which also starts playing the same song!

"<PARAM name="autoStart" value="false" />" this should help, I found it in the WMP 11 SDK.

&lt;object id="Player" height="0" width="0"&lt;BR&gt;		classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"&gt;&lt;BR&gt; &lt;PARAM name="autoStart" value="false" /&gt;&lt;BR&gt;	&lt;/object&gt;

Hey, if you would like i can implement a better album art system for you. I currently have a gadget that takes your now playing song, queries the music brainz database for the album name, and then queries amazon for the album art. If you drop me a PM i'd be happy to let you use the code in this gadget

Hey, if you would like i can implement a better album art system for you. I currently have a gadget that takes your now playing song, queries the music brainz database for the album name, and then queries amazon for the album art. If you drop me a PM i'd be happy to let you use the code in this gadget

I thought about connecting to amazon but personally I have many albums that are not listed anywhere. But I think I can follow this sequence.

1. Look up folder.jpg (just because it is faster)

2. Look up the mp3 file itself.

3. Look up amazon and so.

Could do that, i've created a second version of my now playing gadget to work with this winter api that retrieves the album from amazon. If you wanna drop me an email at [email protected] i can help you put the Amazon code into your gadget as a secondary source.

I thought about connecting to amazon but personally I have many albums that are not listed anywhere. But I think I can follow this sequence.

1. Look up folder.jpg (just because it is faster)

2. Look up the mp3 file itself.

3. Look up amazon and so.

I got it

Player.currentMedia.getItemInfoByType("WM/Picture", "", 0).URL

Just needed the ".URL" to get the album art url instead of trying to get the MetadataPicture object. It will look something like this:

vnd.ms.wmhtml://localhost/WMP309efcb0-fe0d-409a-9b44-4408a8e68546.jpg

but it did display the album art for a web page i used to test it.

This has the potential to be the gadget I have been looking for, but...

Doesn't seem to work for me.

It displays the track name and album name but for some reason not the album art.

I have the folder.jpg in the folder where the music is...

Any ideas?

<edit>

I fixed it.. changed the code to find the folder.jpg to read this:-

oSourceUrl=oWsh.RegRead("HKCU\\Software\\Microsoft\\MediaPlayer\\CurrentMetadata\\SourceURL")
oPos = oSourceUrl.lastIndexOf("\\")
oArtwork =oSourceUrl.substr(0,oPos) + "\\folder.jpg"
var FSO = new ActiveXObject("Scripting.FileSystemObject")
if (FSO.FileExists(oArtwork))
	imgArtwork.src = oArtwork
else
	imgArtwork.src = "images/artwork.png"

It now works by finding the current track path in the registry, finding the last backslash (\) and chopping up to it and then adding folder.jpg to the end

:D

Edited by L0KI

Good idea there Loki, i was working on getting myn to take the path, work out the filename length and then remove it from the string therefore putting you at the backslash, but your idea is much better :)

Btw, i'm not related to this gadget, i'm working on something else

Sorry to hijack the thread.. but I just finished my own customisation of this gadget... I'm loving it.... :D

I ripped the background for the iStat wireless gadget.. so can't share this until I have permission for the code for media player and the background...

post-11693-1176497101.jpg

  • 3 weeks later...
  • 1 month later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Save 78% on Microsoft Office 2024 Professional Plus: Lifetime License by Steven Parker Created with ChatGPT Today's highlighted deal comes via our Apps + Software section of the Neowin Deals store, where you can save 78% on Microsoft Office 2024 Professional Plus: Lifetime License. The essentials to get it all done. Microsoft Office 2024 Home is the latest version of Microsoft’s renowned productivity suite, which includes essential applications like Word, Excel, PowerPoint, and OneNote. This version is specifically designed for individuals and families seeking reliable tools for various home tasks, including document creation, spreadsheet management, presentation design, and note-taking. Office 2024 Professional Plus is for students and families who want classic Office apps on their Mac or PC. A one-time purchase installed on 1 PC or Mac for use at home or school. Lifetime license One-time purchase installed on 1 Windows PC for use at home or work Instant Delivery & Download – access your software license keys and download links instantly Free customer service – only the best support! Microsoft Office 2024 Professional Plus includes: Microsoft Word Microsoft Excel Microsoft PowerPoint Microsoft Outlook Microsoft OneNote Microsoft Access Is it legit? Click here to verify Microsoft partnership No faffing about with subscriptions, just classic apps that don't expire. Good to Know ONE-TIME PURCHASE INSTALLED ON 1 DEVICE This licensing type will be connected with your Microsoft Account, NOT your actual device. This is a one-use code. The product you are purchasing is NOT MICROSOFT 365. Please read the product details. Redemption deadline: redeem your code within 30 days of purchase Access options: desktop Full versions No subscriptions – no monthly/annual fees Version: 2024 Updates included A Microsoft Office 2024 Professional Plus: Lifetime License normally costs $249.99, but this deal can be yours for just $54.97, that's a saving of $195. For full terms, specifications, and license info, click the link below. Microsoft Office 2024 Professional Plus for PC for $59.99 (was $249.99) Although priced in U.S. dollars, this deal is available for digital purchase worldwide. Support queries If you have queries or need support for any of the Neowin Deals, please use the contact form here. Neowin Deals are managed and sold by StackCommerce who represent Neowin on an affiliate basis. Why we post these deals We post these because we earn commission on each sale so as not to rely solely on advertising, which many of our readers block. It all helps toward paying staff reporters, servers and hosting costs. So for those that keep moaning and complaining, be thankful we're still online for you to even do that. Other ways to support Neowin Whitelist Neowin by not blocking our ads Create a free member account to see fewer ads Make a donation to support our day to day running costs Subscribe to Neowin - for $14 a year, or $28 a year for an ad-free experience Disclosure: Neowin benefits from revenue of each sale made through our branded deals site powered by StackCommerce.
    • Payday TWO!! Is 13 years old man I feel old - I remember trying it out and if I did not know I would say 5-6 years ago or something
    • Payday 2 engine upgrade adds 64-bit and DX11 support, drastically shrinks install size by Pulasthi Ariyasinghe Payday 2, the most popular entry in the heisting game franchise, is getting a surprising update after all these years. This is slated to be a complete engine upgrade that will enhance almost every aspect of the 13-year-old title, targeting performance, loading times, file size, rendering backend, and more. Developer Sidetrack Games is planning a beta to test out the new version ahead of the full public launch. The development team today revealed that the long-awaited upgrade to the 64-bit architecture is happening with this Diesel 3.0 engine update. By letting the game use more ram than 4GB, it is said to improve stability and compatibility on most hardware. It should also help modders in the long term with implementing larger changes too. "While many of the changes are made on the backend and not everything will be visible to you guys because it is a massive rewrite of the entire codebase, there will be a lot of things that you can look forward to," Sidetrack explained. Payday 2 will also hop over from DirectX 9 to 11. Instead of visual improvements, this is slated to reduce the amount of VRAM used by the title, letting more lower-end hardware access the title and run it better. Since these changes would require a complete redownload of the game anyway, Sidetrack says it has revamped "the game's packaging and bundling system." This should reduce the installation size from 86GB to 32GB. "So, now it's time to finally move the game to your SSDs," added the studio. The Payday 2 Diesel Engine 3.0 update is entering open beta on June 30 for Steam users. No console release plans were announced today. Sidetrack Games says it has been working on this complete rewrite of the codebase for the last nine months. While these changes should break most mods, the studio encouraged modders to use the beta period to repair their creations with support from the development team.
  • Recent Achievements

    • Week One Done
      Scoobystu earned a badge
      Week One Done
    • Week One Done
      tuben earned a badge
      Week One Done
    • First Post
      OffsetAbs earned a badge
      First Post
    • Reacting Well
      OffsetAbs earned a badge
      Reacting Well
    • First Post
      Kolakid60 earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      439
    2. 2
      +Edouard
      196
    3. 3
      PsYcHoKiLLa
      156
    4. 4
      FloatingFatMan
      71
    5. 5
      Steven P.
      68
  • Tell a friend

    Love Neowin? Tell a friend!