Embed video in a web page for IE8

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
ksatterw
New Cone
New Cone
Posts: 2
Joined: 08 Oct 2010 21:52

Embed video in a web page for IE8

Postby ksatterw » 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:

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?

Ilasir
Cone that earned his stripes
Cone that earned his stripes
Posts: 139
Joined: 14 Apr 2010 18:57

Re: Embed video in a web page for IE8

Postby Ilasir » 09 Oct 2010 22:39

Use a relative filepath.

"Content/Funny Cats.flv"

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

ksatterw
New Cone
New Cone
Posts: 2
Joined: 08 Oct 2010 21:52

Re: Embed video in a web page for IE8

Postby ksatterw » 11 Oct 2010 06:16

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.

mysoogal
Blank Cone
Blank Cone
Posts: 82
Joined: 28 Oct 2008 12:39

Re: Embed video in a web page for IE8

Postby mysoogal » 16 Oct 2010 00:23

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


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 5 guests