Showing posts with label Theora. Show all posts
Showing posts with label Theora. Show all posts

Thursday, 25 October 2012

HTML5: video on a web page

   


Using HTML5 in order to display a video on a web page is easy and complex at the same time.
You might wonder why I'm saying so and that's why I wrote the following short guide. We will see the syntax, advantages and disadvantages of using just HTML5 to display videos.



The syntax
Let's start from the HTML syntax:
<video width="800px" height="600px" controls="controls">
  <source src="test1.mp4" type="video/mp4">
  <source src="test2.ogg" type="video/ogg">
Your browser does not support the HTML5 video tag.
</video>
Fairly easy, isn't it? Well, maybe not...