如何在Asp.net 2.0中播放视频文件 [英] How to play video files in Asp.net 2.0

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

问题描述

大家好,

我想在我的网站上播放视频文件(.flv,.swf,.mp3).
如果我使用< embed>标签,仅允许播放.swf文件.
我不知道该怎么做.我应该使用哪个视频播放器?
我在C#Asp.net中的网站.

是否必须在计算机上安装Flash Player才能播放aspx页上的.flv文件?


等待建议.

Hi All,

I want to play video files (.flv,.swf,.mp3) on my website.
If i use <embed> tag, it only allows to play .swf files.
I dont know how to go ahead. Which Video player i should use?
My website in C# Asp.net.

Is it compulsory to install flash player on machine to play .flv file on aspx page?


Waiting for suggestions.

推荐答案

查看此处:
简单的视频播放器控件 [ ^ ]
使用C#播放.wav文件 [如何使用Visual C#和DirectX在.NET WinForm应用程序中播放视频? /a> [ ^ ]

转到此处以在ASP.NET中显示视频:
ASP.NET嵌入式视频播放器(YouTube™API,C#)
使用ASP.NET 2.0,IIS和HTTP处理程序的视频流
在.net中显示视频(带有Asp.net的C#)
在ASP.NET 2.0中显示视频
Look here:
A Simple Video Player Control [^]
Playing .wav files using C#[^]
How to Play Videos in .NET WinForm Application using Visual C# and DirectX?[^]

Go here for displaying video in ASP.NET:
ASP.NET Embedded Video Player (YouTube™ API, C#)
video streaming with ASP.NET 2.0, IIS and HTTP handler
display video in .net ( C# with Asp.net )
Display videos in ASP.NET 2.0


embed tad将支持播放所有

但是MP4视频需要服务器上的MIME类型才能正常播放

http://www.articulate.com/support/kb_article.php?product=ap9&id=w9bvqxxido6t
embed tad will support to play all

but MP4 videos require a MIME type on your server to play properly

http://www.articulate.com/support/kb_article.php?product=ap9&id=w9bvqxxido6t


嗨 试试吧...

您应该可以右键单击->添加引用-> com-> "WMP对象" ...然后从那里开始.
那就是Windows Media Player.
试试吧...
Hi Try it......

You should be able to right click -> add references -> com -> "WMP Object"... then go from there.
That is windows media player.
try it...


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

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