如何在DirectX VB .NET中获取媒体的持续时间/时间 [英] How to get duration/time elapsed of a media in DirectX VB .NET

查看:99
本文介绍了如何在DirectX VB .NET中获取媒体的持续时间/时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用DirectX SDK和VB .NET创建音频播放器应用程序,我想显示用户音频文件的持续时间和时间,我该如何实现?

PS我正在使用VS 2010旗舰版,Windows 7旗舰版64位...

Hi, I am creating a Audio Player Application using DirectX SDK and VB .NET, i want to show the user Duration and Time elapsed of the Audio File, how can i achieve this?
P.S I'm Using VS 2010 Ultimate, Windows 7 Ultimate 64 bit...

推荐答案

最简单的方法是使用WindowsApiCodePack,这将让你只需要求Windows持续时间 - 这里有一个如何做到这一点的描述:如何在Windows 7上的C#中获取媒体文件的长度(持续时间) [ ^ ]
Easiest way is to use the WindowsApiCodePack, which will let you just ask windows for the duration - there is a description of how to do exactly that here: How to get the length (duration) of a media File in C# on Windows 7[^]


这篇关于如何在DirectX VB .NET中获取媒体的持续时间/时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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