0

I'd like to query Windows Media player from an external app to find out what track (album and artist) it's currently playing.

Is that information exposed anywhere? I've looked into the Windows.Media-Namespace but couldn't find a way to receive this information or track changed events and such.

schlingel
  • 8,560
  • 7
  • 34
  • 62

1 Answers1

0

Similar questions regarding 'How to read currently playing track in WMP' may be appropriate, such as this one.

Whilst that question was about C#, in the answer there is a JavaScript specific reference. You may, for the purposes of Metro's sandboxing, need to consider the manifesting options to make this available to you.

Community
  • 1
  • 1
Ray Hayes
  • 14,896
  • 8
  • 53
  • 78
  • Does this "desktop apps only" mean I can't use it within a metro application or I can't use it for WP7 apps? – schlingel Apr 01 '12 at 21:39
  • Not 100% sure, but at a recent presentation I attended, Microsoft stated that your "existing code" could be called from Metro, you may just have to put appropriate entries in the manifests. I would imagine on a Windows-8 machine you should be able to make use of this if you look at the interop documentation. WP7 I imagine is a different issue. – Ray Hayes Apr 02 '12 at 06:33