Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSanchari Bhattacharya
Courses Plus Student 5,751 PointsEmbeding avi movie in web page sing html
Hi, I have avi movie which are not youtube videos or anything, they are my experimental movies saved as avi format. I want to add them to my web page. How do I embed them? I have tried embed with height width and src attributes but it does not play on the web page. Thanks, Sanchari
3 Answers
S Alexander
18,962 Points<embed src="yourvideo.avi">
if you want to learn to do it the 'right' way, snag the miro video converter or another converter & get them into ogg, mp4, webm. then use the html5 video tag. You can use videojs to build a great-looking custom player.
Cheers, Alex
Sanchari Bhattacharya
Courses Plus Student 5,751 PointsI don't want to convert my videos...so can I use the video HTML 5 tag for putting it on the site? Thanks for ur answer
Jason Anello
Courses Plus Student 94,610 PointsBrowsers only support a few file formats. They can't play an .avi file natively. You'll have to convert to .mp4 and .webM I don't think ogg is necessary anymore.
Jason Anello
Courses Plus Student 94,610 PointsYou can see support tables here: http://caniuse.com/#search=video%20format
Matthew Proudman
11,879 Pointsif you wanted to, something you can do is upload to youtube there is a setting called unlisted that once set the video can't be found by search but the embeded script still works.