
But many programming concepts arenât difficult to grasp, and as programming languages go, JavaScript is a good first language for someone new to programming. Programming can seem like complex magic thatâs well beyond the average mortal.

And, honestly, some programming is like that. Mimetype = 'video/mp4 codecs="avc1.42E01E, mp4a.40.For a lot of people, the term âcomputer programmingâ conjures up visions of super-intelligent nerds hunched over keyboards, typing nearly unintelligible gibberish for hours on end. Consider the code example below (Not all supported file types shown). In our instance we decided that there were sufficiently few types of media supported by JWPlayer that we could determine the mime type and required codecs based on the extension of the file. However, the method requires us to know the mime type and which codecs are required to play the file before it can be used (please refer to the W3C HTML 5 Video Specification for more information on Mime types and codecs). We have to think about older browsers as well right? Thankfully the JavaScript API for HTML5 media elements provides a couple of useful methods for determining if a particular browser is likely to be able to play a given file. However, the situation at the time of writing dictates that we cannot (and certainly should not) assume that a browser will play HTML5 media. While browser vendors continue to implement HTML5 features support should get better and better. Where some browsers support one type of media file other browsers will fail to do so. As such, HTML5 video will not be available on the blog until such a time as YouTube make it possible to generate HTML5 video output using their JavaScript API.ĭifferent browsers offer different levels of support for HTML5 audio and video.

It is worthwhile mentioning that videos on the Nomensa blog make use of the YouTube player. However, since we work with the JWPlayer locally we should be able to implement an HTML5 media player for browsers that support and can play the most common types of media.

It is currently not possible to generate different types of media players (Flash/html5) through many 3 rd party vendors JavaScript APIs. During the recent redevelopment of the Nomensa Accessible Media Player we decided to add optional HTML5 video support for clients using the JWPlayer.
