BLOG: Software Development

Software development news, posts, tutorials and best practices collection.

Video element on HTML5

Video element on HTML5

Francisco Alvarez... - Tuesday, June 29, 2010

Introduction

HTML5 is introducing many new features, APIs, and elements; one of them is the video element which we’ll discuss briefly on this post.

One of the biggest issues that web pages face is that video is not natively supported by any browser; normally you will need a plug-in like Flash player to reproduce videos. This is not a big deal if you use Firefox or Internet Explorer, but what happens if you have an iPhone or an iPad? Well, you can’t access these videos… that’s why HTML5 is so important, especially with the growing demand of mobile devices like the iPhone.

The purpose of the video element is to standardize playback for video on all browsers. This is not that easy, as you might imagine… The current HTML5 draft specification does not specify which video formats browsers should support. There are lots of video formats nowadays, and it’s hard to define which one to use; it should be royalty free of course, have a good compression, high quality image and it shouldn’t kill the CPU while decoding the file.

 There are three main candidates:

-          Ogg Theora

-          H.264

-          VP8

In my opinion browsers should support as many file types as they can, but the most important thing is to standardize this on all browsers.

 

Examples

Ok, now to give you an idea how this element works:

 

               <video src="video.ogv"></video>

 

 

As you can see it’s pretty simple, and besides that basic markup you have some parameters that you could use, like controls, autoplay, etc.

I also found a couple of examples while researching this topic:

-          http://double.co.nz/video_test/test2.html

-          http://html5demos.com/video

These examples might or might not work depending on your browser. You can also find out which browser supports which file extensions here, together with some more info on HTML5 video.

 More
How to configure Zend Framework with Zend Server to create modern PHP applications

How to configure Zend Framework with Zend Server to create modern PHP applications

Andres Torres... - Friday, May 21, 2010

This guide will guide you through configuring the Zend Framework which is a very popular and powerful MVC framework for PHP, the idea is to configure it using the libraries provided on the Zend Server package installer.
 More

Introducing Drupal to Zend Zerver CE 5, How to

Introducing Drupal to Zend Zerver CE 5, How to

Andres Torres... - Thursday, May 20, 2010

In this blog post I will explain how to create a guide on how to install Drupal on a Linux Server ( I choose Ubuntu 8.04 amd64 but any Linux distro will work just fine) but instead of using all the PHP packages bundled with this Linux distribution, we will be using Zend Server which is an Application Sever built for  PHP by Zend.
 More

Hudson and SeleniumTest Suite

Hudson and SeleniumTest Suite

Belen Padilla... - Wednesday, March 31, 2010

In my previous post, I explained how to run the Selenium test suite on a Ubuntu server.  Now, let’s suppose you have Hudson(software for Continuous Integration) installed in your server and you want to create a job that executes a Selenium Test suite. I am going to show you how to do this in the following sections. More

Selenium Test Suite on Ubuntu

Selenium Test Suite on Ubuntu

Belen Padilla... - Tuesday, March 23, 2010

In case you have a Ubuntu server running Hudson (software for Continuous Integration), you may want to make a first attempt to run a Selenium test suite in command line before setting up a Hudson job that automatically runs the test suite. More

How to create a test suite in Selenium?

How to create a test suite in Selenium?

Belen Padilla... - Thursday, March 18, 2010

In my previous posts, Selenium IDE for Automated Testing and Selenium-RC for Automated Testing, I wrote about Selenium IDE and Selenium RC and I used a simple test case “GoogleSignUpErrors” to show you how to create and execute a single test case using both tools. More

Selenium RC for Automated Testing

Selenium RC for Automated Testing

Belen Padilla... - Monday, March 15, 2010

In my previous post, Selenium IDE for Automated Testing, I showed you how to use Selenium IDE, run a simple test case “GoogleSignUpErrors” and exported it as a Java file. This post is a guide to install Selenium Remote Control and run “GoogleSignUpErrors” as a Java program.  More

Selenium IDE for Automated Testing

Selenium IDE for Automated Testing

Belen Padilla... - Wednesday, March 10, 2010

If you need to automate testing of a Web application, Selenium is a good option to consider. First it is an Open Source tool, it uses a friendly environment to record browser actions, it allows you to edit test cases in several programming languages and run test cases in different browsers. More

Enterprise Drupal Object Oriented Design Approach

Enterprise Drupal Object Oriented Design Approach

Jaime Davila... - Monday, March 01, 2010

It's been some time since my last post, I started in a Drupal project, so I have to learn a lot of things; one of the most interesting is its OOD/OOP - Object Oriented Design/Object Oriented Programming - approach wich states that "...Drupal code base and API does reflect some principles found in object-oriented programming and design".  More

.NET Extension Methods for extending classes - not working in inline code

.NET Extension Methods for extending classes - not working in inline code

Christian Herrera... - Thursday, February 11, 2010

Some time ago we had a really weird problem: our extension methods worked fine in code-behind, and when we used then in inline code (asp.net) with a web form they seem to be fine too, intellisence recognized them, no compilation errors arose but when running the code the “ CS0117: 'type' does not contain a definition for 'identifier' ” error appeared. More

ajax rotator
2010 Copyright Oshyn. All rights reserved.