Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 8th, 2007, 12:54 AM
Authorized User
Join Date: May 2007
Posts: 95
Thanks: 5
Thanked 0 Times in 0 Posts
Default How to put videos on aspx page


I m a novice in .NET and designing a website using visual studio 2005. For many days i m trying to put videos on aspx page, i m using the follwing code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<object width="320" height="290"
id="mediaplayer1"><param name="Filename" value="Campusfinal.mpg"><param name="AutoStart" value="True"><param name="ShowControls" value="True"><param name="ShowStatusBar" value="False"><param name="ShowDisplay" value="False"><param name="AutoRewind" value="True"><embed type="application/x-mplayer2"
width="320" height="290" src="C:\Documents and Settings\Abhishek\My Documents\Downloads\Video\Campusfinal.mpg"
filename="Campusfinal.mpg" autostart="True"
showcontrols="True" showstatusbar="False"
showdisplay="False" autorewind="True"></embed></object>

                    I m using windows media player 11. When putting this code onto a html page, i m getting problems such as:
1) When clicked on the play button, it starts connecting to the internet, if got connected, it starts downloading the file( campusfinal.mpg) from my harddisk and creates the same file with different name(campusfinal_1.mpg), after that windows media player opens separately and video is played.

           This is extremely annoying as i cant be connected to internet everytime.
i want
       a) my video to be played within the browser and it should not use internet for this purpose.

             Please help and tell step by step process to how to put videos on aspx page and what are the codes required.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to see .aspx page. rupen ASP.NET 1.0 and 1.1 Basics 0 May 25th, 2006 10:41 AM
How to pass variables from Aspx page to Asp Page jayaraj Classic ASP Basics 2 May 23rd, 2004 06:56 AM
How to pass the variables in Aspx page to Asp Page jayaraj ASP.NET 1.0 and 1.1 Basics 3 May 23rd, 2004 06:55 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.