如何使用VB.net 2005播放视频文件 [英] how to play a video file using VB.net 2005

查看:153
本文介绍了如何使用VB.net 2005播放视频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我希望我可以从您的帮助中得到查询的答案.

我想播放一组可以具有任何扩展名的文件.例如,例如ex(一个html文件,视频文件,ppt).
我想以循环方式播放所有这些文件,而不使用媒体播放器.

目前,我正在vb.net 2005中对此进行工作
请问谁能帮我解决整个问题..

请帮助我获得解决方案.

在此先感谢
问候,
KALPANA

Hello everyone!!

I hope that i could get the answer to my query from ur help..

I wanna play a set of files that can be of any extension .Like for ex(an html file,video file,ppt) .
I want to play all these files in a round-robin fashion without using a media player.

Currently im working on this in vb.net 2005
Could any one plz help me out in getting the entire solution..

Please help me to get a Solution.

Thanks in advance
Regards,
KALPANA

推荐答案

没有这种动物.

没有可以播放HTML,视频和Powerpoint数据文件的控件,更不用说任何扩展名"了.
No such animal.

There is no single control that will play HTML, video, and power point datafiles, let alone "any extension".


是的,OriginalGriff是正确的.没有单一控件.

我的建议是您可以使用 WebBrowser控件(经过一些更改后,您可以查看图像,文本文件,xml文件,html文件以及Office文件[word,excel,powerpoint])
如果您为视频/音频/Flash SWF文件/等进行编码(生成html文件嵌入对象),则也可以在WebBrowser控件中打开这些文件.

进一步阅读
如何使用WebBrowser控件在Visual C#2005或Visual C#.NET中打开Office文档 [ ^ ]
Yes, OriginalGriff is right. There is no single control.

My suggestion is you can use WebBrowser control (you can view images, text files, xml files, html files, also office files[word, excel, powerpoint] after some changes)
If you code(generate html files embedding objects) for videos/audios/flash swf files/etc., then you can open those too in WebBrowser control.

Further reading
How to use the WebBrowser control to open Office documents in Visual C# 2005 or in Visual C# .NET[^]


首先创建一个表单,没有边界的情况下,将状态设置为最大化,然后添加一个播放媒体文件的控件. (类似于Windows Media Player控件).只需从控件播放文件即可.

希望对您有帮助.
First make a form, with no border, set the state to maximized, and add a control that plays media files. (Like the Windows Media Player control). Simply play the file from the control.

Hope this will help you.


这篇关于如何使用VB.net 2005播放视频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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