如何使用c#在aspx页面中包含视频 [英] How to include a video in aspx page using c#

查看:121
本文介绍了如何使用c#在aspx页面中包含视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为一些概念开发智能教程系统.我需要在aspx页面中包含视频.帮助我...

I am developing an intelligent tutorial system for an number concepts.I need to include video in my aspx page. help me out...

推荐答案

在这里看看:
在ASP.NET 2.0中显示视频 [
Have a look here:
Display Videos in ASP.NET 2.0 [^]


快速简便在网页上播放视频的方法;

Internet Explorer对于< img>具有有趣的dynsrc参数.标签.代码如下所示:
The fast and easy ways to play video on web page;

Internet Explorer has interesting dynsrc parameter for the <img> tag. The code can look like this:
<img dynsrc="MyVideo.avi" />



这将仅通过使用简单的图像HTML标签显示视频.但是,它与每个Web浏览器都不兼容.实际上,它仅与Internet Explorer一起使用,但在某些情况下可能是令人满意的解决方案.



This will show video only by using simple image HTML tag. But, it is not compatible with every web browser. In fact, it works only with Internet Explorer, but it can be satisfactory solution in some scenarios.

<embed src="MyVideo.avi" />



代替使用< embed>标签,W3C推荐< object>标签.这是使用< object>显示WMV视频文件的代码. HTML标记:



Instead of using of <embed> tag, W3C recommends <object> tag. Here is the code to display WMV video file with <object> HTML tag:

<object height="320px" width="240px" type ="video/x-ms-wmv">
    <param name="src" value="http://localhost/MyMovie.wmv" />
</object>



在Internet Explorer中使用Media Player的活动X控件显示视频



Display video with Media Player active X control in Internet Explorer

<OBJECT width="312px" height="248px" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" VIEWASTEXT>
<PARAM name="autoStart" value="False">
<PARAM name="URL" value="./Movie/Pljacka.wmv">
<PARAM name="enabled" value="True">
<PARAM name="balance" value="0">
<PARAM name="currentPosition" value="0">
<PARAM name="enableContextMenu" value="True">
<PARAM name="fullScreen" value="False">
<PARAM name="mute" value="False">
<PARAM name="playCount" value="1">
<PARAM name="rate" value="1">
<PARAM name="stretchToFit" value="False">
<PARAM name="uiMode" value="full">


</OBJECT>



在Firefox Web浏览器中显示Media Player控件



Display Media Player control in Firefox web browser

<EMBED type="video/x-ms-wmv" width="416px" height="320px" autostart="False" URL="./Movie/Pljacka.wmv" enabled="True" balance="0" currentPosition="0" enableContextMenu="True" fullScreen="False" mute="False" playCount="1" rate="1" stretchTofit="False" uiMode="3">



这也将帮助您,只需拖放即可:

http://www.asp.net/community/control-gallery/Item.aspx? i = 1703 [^ ]



And this will help you also you just drag and drop :

http://www.asp.net/community/control-gallery/Item.aspx?i=1703[^]


Roger Martin在他的文章中提供了完整的媒体解决方案:
Gallery Server Pro-一个用于共享照片,视频,音频和其他媒体的ASP.NET画廊 [ ^ ]

Pascal ECHEMANN创建了出色的框架Spa,可在 http://www.flashapi.org/ [
接下来要看的是
Away3d和Prefab [
祝你好运:)

问候
Espen Harlinn
Roger Martin provides a complete media solution in his article:
Gallery Server Pro - An ASP.NET Gallery for Sharing Photos, Video, Audio and Other Media[^]

Pascal ECHEMANN has created an excellent framwork Spas - available at http://www.flashapi.org/[^]

Since you are "developing an intelligent tutorial system for an number concepts" I can recommend looking closely at Pascals framework - the architecture lets you create really good looking flash based applications with a minimum of fuss. look through the demos - then take a look at the code for the demos. Small pieces of code providing a lot of functionality.

Next thing to look at is Away3d and Prefab[^] - combine this with Spas/flashapi and you have a compelling framework for building a really "intelligent tutorial system".

Good luck :)

Regards
Espen Harlinn


这篇关于如何使用c#在aspx页面中包含视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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