在asp.net中播放视频 [英] video play in asp.net

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

问题描述

是否可以使用asp.net&播放视频文件?如果是,那我该怎么办?

Is it possible to play video file using asp.net & if yes then how can i do it ?

推荐答案


您好,您可以访问此URL. .使用C#播放.wav文件 [
Hi You Can Visit this URL....................Playing .wav files using C#[^]


<embed src="video.avi" /> or <img dynsrc="video.avi" /> or <object data="video.avi" type="video/avi" /> 


有几种方法可以做到...



这是可以帮助您在应用程序中播放视频文件的代码,我已经用过了.


are a few ways to do it...



Here is the code that will help you to play a video file in your application, i have used that.

 <%--The code that can used to play a video file with .wmv extension --%>
<object type="video/x-ms-wmv" data="../Images/amazing.wmv" width="420" height="340">
<param name="url" value="../Images/amazing.wmv"/>
<param name="src" value="../Images/amazing.wmv" />
<param name="autostart" value="true" />
<param name="sound" value="false" />
<param name="controller" value="true" />
</object>
<%--End code to play video file--%>


根据您在应用程序中的文件更改URL.


Change the url according to your file in application.


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

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