Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Whats the most cross-browser method of embedding videos?

A client of mine wants to put some videos on their website. In the past I've always just converted the video to an FLV, and used something like LongTail Player to play it.

However, nowadays of course lots of people use smartphones such as the iPhone that don't play flash files - so whats the best option? Is it a case of choosing one format, or is it best to go with flash, and then provide a download for iPhone users? I have noticed on some websites I have been viewing on my iphone, you can click on the video and it launches in YouTubes video player - is this perhaps an option?

Views would be appreciated.

like image 290
higgsy Avatar asked Mar 15 '11 16:03

higgsy


1 Answers

I'd use the HTML video tag with an mp4 version, a webm version + a flash fallback using the mp4 file.

This covers pretty much everything.

Kroc Camen has an awesome example of this on his video for everyone page.

like image 184
Rich Bradshaw Avatar answered Jan 05 '23 03:01

Rich Bradshaw