Embed Videos in Webpage
From advanced to novice... come, join in, teach, and learn. Web programming and help. We have stuff on it all: php, html, asp, asp.net, etc. Share your coding expertise too.

Moderators: Forum Experts, Management

Embed Videos in Webpage

Postby T-Man1984 on Sun Jun 19, 2011 11:06 pm

Hey all,
I am starting to use my Nikon Camera to take short videos. I host my own website from home, and have setup a subpage viewable at videos.mydomain.com.

However I am having trouble finding a good and easy way to get the videos to play. I was thinking about making a table two columns wide and putting a video in each box all the way down the page. I have both Dreamweaver and Microsoft Expression, but cannot seem to find a good way of doing this in either program. I get the table made, but when I put the video in there and view it, it is too large and starts playing automatically. Seems like this should be something people do all the time?

Any advice?
User avatar
T-Man1984
PRO Level 6
PRO Level 6
 
Posts: 229
Joined: Thu Sep 26, 2002 12:27 am
Location: Ohio
Real Name: Justin Spafford

Re: Embed Videos in Webpage

Postby ar1stotle on Thu Mar 29, 2012 2:12 am

The simple way is to use HTML5 video tags

<video width="640" height="480" controls="controls">
<source src="movie.mp4" type="video/mp4" />
<source src="movie.ogg" type="video/ogg" />
</video>

The trick then is to make sure that you get your video in a format that every browser supports... or you'll need to list multiple sources as I have here.
Image
Image
User avatar
ar1stotle
PRO BRONZE
PRO BRONZE
 
Posts: 3841
Joined: Sun May 16, 2004 1:59 am
Location: New Orleans, Louisiana


Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 0 guests