How to retrieve files from the windows phone (8.1) music library using path names?

后端 未结 3 2074
深忆病人
深忆病人 2020-12-16 23:18

I am letting my users select files from the music library. After which I am storing the path of the selected files locally. Now my problem is how do I get access to the file

3条回答
  •  暖寄归人
    2020-12-16 23:45

    First, make sure you have the proper capabilities set. The error you're getting is what you'd see if you didn't declare the right CAP_ID . Here is a screenshot:

    enter image description here

    Regarding file paths, depending where the file is stored, you may need to use the double-slash. I had a similar issue, I resolved by using the following approach:

    "isostore:shared\\folderName\\NameOfFile.mp3"

    You can see the whole process in my SO post here.

提交回复
热议问题