c#媒体库清单 [英] c# Media Library Listing

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

问题描述


我目前正在创建一个媒体播放器,但是当我在网上搜索一些帮助时,似乎没人能够提供信息.我正在尝试制作一个媒体播放器,我觉得很容易构建它来播放视频,但是我遇到的问题是在计算机上创建文件并将存储在其中的mp3之类的文件自动放入库中然后可以播放的媒体播放器.我想要它,以便将文件夹中的文件自动存储到媒体播放器上,然后我可以在应用程序中搜索该文件名并单击以播放它.请问人们是否具体,因为人们可能会非常模糊并陈述明显的观点,然后将其留在那.我将需要创建什么访问数据库?,我将需要做什么,例如创建一个类代码以在下拉框中列出等.
如果有人可以帮助我,我将非常感激.

Hi,
I am currently creating a media player but as I am searching online for some help, no one seems to be able to provide the information. I am trying to have a media player which I find easy to build to have it playing videos but what I am having the issue with is creating a file on the computer and having files like mp3 which are stored there be automatically put into a library on the media player which then can be played. I want it so that the files in a folder will be automatically stored onto the media player which then I can search for on the application for the file name and click to play it. Please can people be specific because people can be very vague and state the obvious and then leave it at that. What will I need to create e.g. access database ?, and what will I need to do for it like create a class coding to list in a drop down box etc.
If anyone can help I will be highly greatful.

推荐答案

您有两个不同的要求.

1.播放媒体文件.
2.提取并使用元数据填充库.

可以使用任何播放API(例如DierctX,托管DirectX,WMPSDK,SlimSx,SharpSx,NAudio等)轻松执行播放.

我不知道如何从媒体文件中获取元数据,但是我敢肯定,您可以使用一些API来做到这一点,或者简单地读取文件属性也可能会有所帮助(虽然不确定)
You have two separate requirements.

1. Playback of media files.
2. Extracting and using metadata to populate the library.

The playback can easily be performed by using any playback API like DierctX, managed DirectX, WMPSDK, SlimSx, SharpSx, NAudio etc.

I don''t know how to get the meta data out of media files, but I am sure you will be able to do that using some API or perhaps reading simply file attributes might also help(not sure though)


这篇关于c#媒体库清单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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