Embed video in a web page for IE8
Posted: 08 Oct 2010 23:33
I am creating a web page that will display videos, however I cannot get vlc to play the video in the browser. Here is the code I am using:
If I type the URL directly into the broswer, the "Do you want to save this file?" dialog appears. If I click the Open button, vlc opens the video and begins playing it outside the browser. What do I need to do to get the video to play in the browser?
Code: Select all
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="VlcTest.Default" %>
<!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>VLC Test Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<object
classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
type="application/x-vlc-plugin"
width="640"
height="480"
id="vlc">
<param name="MLR" value="http://localhost/Content/Funny Cats.flv" />
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="True" />
<param name="AutoPlay" value="True" />
</object>
</div>
</form>
</body>
</html>