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.
- 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 ?
- What is the best solution for displaying these videos? (Flash player, jquery player) or anything else?
Thanks a lot. poscaman
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.
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
- 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
Incidentally, 'placeholder.jpg' is the image that will be displayed before the video is loaded.
After having read these links, i explained to site-owners the options. So, they choose to go with flash-player(jwplayer)..
Thanks a lot