Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
414 views
in Technique[技术] by (71.8m points)

c# - Windows Phone 8: Media file access

Are there means to access audio and video files from the default audio/video folders in Windows Phone 8? I already checked this document but all methods (for instance KnownFolders.MusicLibrary) are not implemented on the WP8: http://msdn.microsoft.com/en-us/library/windows/apps/hh967755.aspx

I need access to the raw file data. It would also be fine to access the data from a Windows Phone Runtime or from pure C++ if it's not possible from C#.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

KnownFolders doesn't work on WP8 for 3rd party apps.

In terms of access on WP8 here's what's available:

  • Contacts: Read access available since WP7.5, write-access available via WP8 ContactStore.
  • Appointments: Read-access available since WP7.5. In WP8 you can add individual appointments after user confirmation via the SaveAppointmentTask.
  • Photos: Read access to all folders available since WP7. Write-access to Camera Roll and Saved Pictures available since WP7.5.
  • Audio: Developers can iterate over the music library and even play it via the native player since WP7. Starting WP8 developers can add songs to the music library using MediaLibraryExtensions.SaveSong().
  • Video: Read-write isn't available. There are security and storage issue with transporting files that big.
  • uSD Card: Starting WP8 apps can register for specific file extensions and read those from the micro-SD card.
  • Documents: No read-write access. But starting WP8 developers can open up docx/xlsx/etc files using Launcher.LaunchFileAsync and it will open up a read-only copy in Office. Users can then choose to save that copy in the Office Hub.

I've made this post a wiki so if there are any additional areas, feel free to edit and add those bullet points.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...