Media Player, Real Player, QuickTime Player in ASP.Net

Step 1: Download the project and find the dll from Bin Folder.

Step 2: Add it to your tool box.

Step 3: Follow the code or see the attached project.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

 

<%@ Register Assembly="ASPNetVideo.NET3" Namespace="ASPNetVideo" TagPrefix="ASPNetVideo" %>

<!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 id="Head1" runat="server">

    <title></title>

</head>

<body>

    <form id="form1" runat="server">

    <div style="border: medium groove #800000;">

        <ASPNetVideo:WindowsMedia ID="plyr1" runat="server">

        </ASPNetVideo:WindowsMedia>

        <ASPNetVideo:RealPlayer ID="RealPlayer1" runat="server" VideoURL="~/WinVideo-ASP-MultiFileUpload.wmv">

        </ASPNetVideo:RealPlayer>

        <ASPNetVideo:QuickTime ID="QuickTime1" runat="server">

        </ASPNetVideo:QuickTime>

    </div>

    </form>

</body>

</html>

.CS 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)

    {

        plyr1.VideoURL = "http://localhost:3435/video/WinVideo-ASP-MultiFileUpload.wmv";

        RealPlayer1.VideoURL = "http://localhost:3435/video/WinVideo-ASP-MultiFileUpload.wmv";

        QuickTime1.VideoURL = "http://localhost:3435/video/WinVideo-ASP-MultiFileUpload.wmv";

    }

}

Ebook Download
View all
Learn
View all