的Windows Phone 8:媒体文件的访问 [英] Windows Phone 8: Media file access

查看:164
本文介绍了的Windows Phone 8:媒体文件的访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有指从Windows Phone 8的默认音频/视频文件夹访问的音频和视频文件?我已经选中这个文件,但(例如KnownFolders.MusicLibrary)没有在WP8实现所有方法:<一href=\"http://msdn.microsoft.com/en-us/library/windows/apps/hh967755.aspx\">http://msdn.microsoft.com/en-us/library/windows/apps/hh967755.aspx

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

我需要访问原始文件的数据。这也将是罚款从Windows手机运行系统或从纯C访问数据++,如果它从C#是不可能的。

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#.

推荐答案

KnownFolders不会对WP8的第三方应用程序工作。

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

在上WP8准入方面这里有什么可用的:

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


  • 联系人:读自WP7.5可用的访问,写访问通过WP8 ContactStore的使用。

  • 约会:只读访问可用自WP7.5。在WP8您可以通过SaveAppointmentTask用户确认后添加单独的约会。

  • 照片:读访问,因为WP7提供的所有文件夹。写访问相机胶卷和保存的图片可用,因为WP7.5。

  • 音频:开发人员可以在音乐库进行迭代,并甚至通过自WP7的原生播放器播放。启动WP8开发者可以通过添加歌曲MediaLibraryExtensions.SaveSong到音乐库()。

  • 视频:读写不可用。有安全和存储的问题与传输文件那么大。

  • 美元卡:启动WP8的应用程序可以为特定文件扩展名注册并阅读这些从micro-SD卡

  • 文件:没有读写访问。但是从WP8开发者可以打开DOCX / XLSX /使用Launcher.LaunchFileAsync etc文件,它就会打开一个只读的Office拷贝。然后,用户可以选择保存该副本中的Office中心。

  • 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.

我发这个帖子的wiki所以如果有任何其他地方,随意编辑和添加这些要点。

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

这篇关于的Windows Phone 8:媒体文件的访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆