Page 1 of 1

Embed video in a web page for IE8

Posted: 08 Oct 2010 23:33
by ksatterw
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:

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>
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?

Re: Embed video in a web page for IE8

Posted: 09 Oct 2010 22:39
by Ilasir
Use a relative filepath.

"Content/Funny Cats.flv"

or "Funny Cats.flv", probably, depending on what page html and video files are in.

Re: Embed video in a web page for IE8

Posted: 11 Oct 2010 06:16
by ksatterw
I tried the relative path "Content/Funny Cats.flv", but it did not work. All I see is a black rectangle in the web page. The video never starts playing.

Re: Embed video in a web page for IE8

Posted: 16 Oct 2010 00:23
by mysoogal
I tried the relative path "Content/Funny Cats.flv", but it did not work. All I see is a black rectangle in the web page. The video never starts playing.
install vlc 1.0.5 full package

and unzip to desktop and open index.html

http://33t.co.cc/Theora-PluginKIT.zip