将视频文件添加到asp.net项目中 [英] adding video file to an asp.net project

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

问题描述

我想要 将视频文件添加到asp.net项目(C#)。视频已经下载并在我的本地计算机中。当我运行应用程序时,我们应该能够看到视频,但它不应该自动运行。点击后视频它应该是
弹出来然后它应该运行。

I want  to add video files to an asp.net project(C#).The video is already downloaded and in my local computer.when i run the application the we should be able to see the video but it should not run automatically.After i click on the video it should come as a pop up and then it should run.

提前致谢

推荐答案

尝试在 http://forums.asp.net/ 上询问有关asp.net特定问题的问题。不要忘记让你的问题描述性并给出一些代码snipet。

Try asking your question on http://forums.asp.net/ for asp.net specific question. Do not forget to make your question bit descriptive and give some code snipet.

无论如何你在asp.net中使用Media Player控件?如果是,则其参数为
自动启动,您可以将其设置为 False
0
,如下所示。

Anyway are you using Media Player control in asp.net? If yes it has a parameter as AutoStart which you can set to False or 0 as below.

<object id="VIDEO" width="100%" height="100%" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"type="application/x-oleobject"><param name="URL" value="http://localhost/start.wmv" /> <param name="SendPlayStateChangeEvents" value="True" /><param name="AutoStart" value="False" /><param name="uiMode" value="none" /> <param name="windowlessVideo" value="True" /><param name="stretchToFit" value="true" /></object>

此控件有很多限制,不确定您是否已考虑过 。或者,你可以使用一些3< sup> rd< / sup>派对控制,如
http://videoplayer.codeplex.com/

This control got many limitations and not sure if you have already considered . Alternatively you can use some 3<sup>rd</sup> party control like http://videoplayer.codeplex.com/

<跨度>&NBSP; ...。仅供参考您可以使用具有真正媒体播放功能的Silverlight。参考:

http://www.learn-silverlight-tutorial.com/StreamingMediaUsingSilverlight。 cfm

 …. Just FYI You can use Silverlight which has true media playing capabilities. Refer: http://www.learn-silverlight-tutorial.com/StreamingMediaUsingSilverlight.cfm


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

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