locked
Music Library Access RRS feed

  • Question

  • I want to make a Javascript/HTML app that plays music, but right now, I'm just trying to display information about the songs in my music library. Here's my code:

    var musicLibrary = Windows.Storage.KnownFolders.musicLibrary;
        musicLibrary.getItemsAsync().then(function (items) {
            items.forEach(function (item) {
                print(item.name);
            });
        });

    An error occurs for print(item.name): Access is denied. Any idea why?

    Sunday, March 3, 2013 1:49 PM

All replies