如何在Winrt应用程序中使用路径访问文件媒体播放列表和库功能 [英] How Do I Access Files Using Path In Winrt App For Media Playlist And Library Features

查看:66
本文介绍了如何在Winrt应用程序中使用路径访问文件媒体播放列表和库功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

见鬼!我是winrt的新手,我正计划开发一个winrt应用程序,用于播放音频/视频,创建播放列表和媒体库的简单媒体播放器。



As我想我会制作一个播放列表并在保存播放列表时序列化它。此播放列表类将保留可能位于硬盘中任何位置的音频/视频文件的路径。类似地,对于库,我将在数据库中存储文件信息和路径以供将来在数据库中访问。但事实证明我只能使用拣货员访问系统上的其他文件(少数文件除外)。



但我们知道有库和播放列表功能在win8中的winrt音乐应用程序,必须有一个合法有效的方法。



如果你能帮我解决这个问题,我将非常感谢你因为这对我来说非常重要



提前谢谢

Hell there! I am new to winrt and i was planning on developing a winrt app for a simple media player that would play audio/video, create playlist and have media library.

As i was thinking i would make a playlost class and serialize it when a playlist is saved. This playlist class would be holding path to the audio/video files that could be anywhere in the hard disk. Similarly for library i would store files info and path in the database for future access in the database. But as it turned out i can only access other files on system using pickers (except for few files).

But as we know that there is library and playlist features in the winrt music app in win8, there must be a legal and efficient way to do so.

I would be thankfull to you if u could help me out on this one because this is really important for me

Thanks in advance

推荐答案

这个页面描述的是命名空间(按区域/主题划分Windows Runtime API: https://msdn.microsoft.com /en-us/library/windows/apps/br211377.aspx [ ^ ]

如果你进去,你会发现这个,这可能对你有所帮助:

https://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.pathio.aspx [ ^ ]
This page describes are the namespaces (split by areas/subjects) of Windows Runtime API: https://msdn.microsoft.com/en-us/library/windows/apps/br211377.aspx[^]
If you go in you will find this, and that may help you:
https://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.pathio.aspx[^]


这篇关于如何在Winrt应用程序中使用路径访问文件媒体播放列表和库功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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