A Digital Age Deserves A Digital Leader

Embed Videos in Webpage

Embed Videos in Webpage

Postby T-Man1984 » 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?
PRO Level 6
User avatar
Posts: 231
Joined: Thu Sep 26, 2002 12:27 am
Location: Ohio
Real Name: Justin Spafford

Re: Embed Videos in Webpage

Postby ar1stotle » 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
PRO BRONZE
User avatar
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 5 guests

cron
cron