如何在asp.net网站中添加视频 [英] How to add Video in asp.net website
问题描述
如何在asp.net网站中添加视频
当用户单击播放按钮时,视频将开始
How to add Video in asp.net website
when user click on play button the video will start
推荐答案
引用该线程
在asp.net网站中播放视频 [ ^ ]
以下是一些您可能会觉得有用的文章
上传视频文件并将其转换为Flash Video(flv),使用ASP.NET处理程序的逐步流式传输 [ ^ ]
在ASP.NET网站中显示来自YouTube频道的视频 [ ^ ]
Refer this thread
Playing Video in asp.net website[^]
Here are some articles you might find useful
Upload and Convert Video File to Flash Video (flv) and Progressive Streaming using ASP.NET Handler[^]
Displaying Videos from YouTube Channel in ASP.NET Website[^]
您可以为此使用银色的灯光控制..
you can use silver light control for this purpose..
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CS.aspx.cs" Inherits="_Default" %>
<%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls"
TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>MediaPlayer Example</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:MediaPlayer ID="MediaPlayer1" runat="server" Height="240px" Width="320px"
MediaSkinSource="~/skins/Professional.xaml" MediaSource="~/files/Butterfly.wmv"
Volume="0.9">
</asp:MediaPlayer>
</div>
</form>
</body>
</html>
C#代码:
c# code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
MediaPlayer1.MediaSource = "~/files/Butterfly.wmv";
}
}
寻找更多参考资料:
请帮助 [简单的视频播放器控件 [ ^ ]
使用C#播放.wav文件 [如何使用Visual C#和DirectX在.NET WinForm应用程序中播放视频? /a> [ ^ ]
ASP.NET嵌入式视频播放器(YouTube™API,C#)
使用ASP.NET 2.0,IIS和HTTP处理程序的视频流
在.net中显示视频(带有Asp.net的C#)
在ASP.NET 2.0中显示视频
Look for more references:
plz i need some help[^]
A Simple Video Player Control [^]
Playing .wav files using C#[^]
How to Play Videos in .NET WinForm Application using Visual C# and DirectX?[^]
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
这篇关于如何在asp.net网站中添加视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!