简体   繁体   English

我如何在C#中的asp.net中播放视频文件?

[英]how can i play a video file in asp.net in c#?

I want to play a video file without any installed plugin for example . 我想播放视频文件,而无需任何安装的插件例子 File extensions include .mov, .flv, .avi, or another. 文件扩展名包括.mov,.flv,.avi或其他。 How can i play a video file but i won't user must be to install flash player and how can i play mp3 file in Asp.net in C#? 我该如何播放视频文件,但我不是用户必须安装Flash Player以及如何在C#中的Asp.net中播放mp3文件? I installed visual studio 2010 ultimate. 我安装了Visual Studio 2010 Ultimate。

You have two options: 您有两种选择:

  • HTML5 video HTML5视频

      <video src="movie.avi" controls> <!-- The msg if browser doesn't have HTML5 video support --> </video> 
  • <object> for Windows Media player/QuickTime etc. Windows Media Player / QuickTime等的<object>

The first option will let you embed nicely the video, but will limit the user base(less than a half of browsers have HTML 5 support). 第一个选项可让您很好地嵌入视频,但会限制用户群(不到一半的浏览器支持HTML 5)。 Second option force the user to download the app. 第二个选项强制用户下载应用程序。

这就是您想要的: 使用C#在asp.net中播放视频

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 c# ASP.NET MVC 获取视频播放 - Getting Video To play using c# ASP.NET MVC 我如何使用HTML video标签在asp.net应用程序中播放VLC实时流视频 - how can i play VLC live streaming video in asp.net application using HTML video Tag ASP.Net,C#Web应用程序,如何在客户端播放视频 - ASP.Net , C# Web Application, how to play video sitting on client side 如何为 ASP.net/C# 应用程序配置文件值中的值添加与号 - How can I add an ampersand for a value in a ASP.net/C# app config file value 如何将以HttpPostedFIle形式上传的XML文件转换为C#asp.net中的字符串? - How can I convert a uploaded XML file that is in the form of a HttpPostedFIle to a string in C# asp.net? 我如何在ex.html c#中使用extern html文件作为附件并将其发送到电子邮件地址? - How I can use a extern html file for a attachment in asp.net c# and send it to a email address? 我如何在c#ASP.net中上传超过4 g的文件 - how can i upload file more than 4 g size in c# ASP.net 我如何在asp.net C#中获取上载文件的源地址 - how can i get the source address of an uploaded file in asp.net c# 如何将变量从C#类输出到aspx文件(asp.net) - How can I output variable from C# class to aspx file (asp.net) 如何下载我的文件夹中的文件 c# ASP.NET Web API? - How can I download file in my folder c# ASP.NET Web API?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM