I'm currently developing a web page, a movie-database. Among other features, trailers would be available for visitors to watch. These videos (trailers) would be hosted in our server, so i have two questions.

  1. What is the best solution (lower loading time for the page, less bandwidth consumption) for storing these videos? Which format (avi, mpg, flv,...) is the most appropriate ?
  2. What is the best solution for displaying these videos? (Flash player, jquery player) or anything else?

Thanks a lot. poscaman

3 answers

Doug 1095
This was chosen as the best answer

There's no short answer here. The two best resources for learning more:

SublimeVideo is a package that will try to make this easier for you. It looks promising but is currently in limited beta.

Answered almost 9 years ago by Doug

You're best solution to part 2 might be the HTML5 <video> tag, which uses the (modern) browser's in-built video player, but also allows for graceful degradation.

The following code displays your video in the following priority

  • .ogv file - an obscure format, but is open-standard
  • .mp4
  • Flash
  • A link to download the file if Flash is not installed

<video controls width="360" height="240" poster="placeholder.jpg">

<source src="movie.ogv" type="video/ogg">

<source src="movie.mp4" type="video/mp4">

<object type="appplication/x-shockwave-flash" width="360" height="240" data="player.swf?file=movie.mp4">

<param name="movie" value="player.swf?file=movie.mp4">

<a href="movie.mp4">Download the movie</a>



Internet Explorer will not recognise the <video> tag unless you declare it with Javascript, but it should pick up the Flash version instead.

Incidentally, 'placeholder.jpg' is the image that will be displayed before the video is loaded.

Answered almost 9 years ago by John Catterfeld

Hello again.

After having read these links, i explained to site-owners the options. So, they choose to go with flash-player(jwplayer)..

Thanks a lot

Answered almost 9 years ago by poscaman