Code Theory

HTML5

Audio & Video

The Web Audio API, HTML5 audio quirks on mobile, and background video.

Audio & Video guides on Code Theory
Guide Length API status
HTML5 Fullscreen Background Video with CSS and JS (Plugin/Library)

Fullscreen background videos that autoplay right when the webpage loads (above the fold) has become quite a popular trend these days.

2074w Current
Solve Your Game Audio Problems on iOS and Android with Web Audio API

So you made your game or some other app that has multiple sound effects produced by several audio files. It works great on your desktop, laptop, etc.

868w Current
HTML5 Audio Behaviour and Support in iOS and Android

Few months back I was developing an HTML5 game where I really struggled with adding and playing the different sound/audio effects properly across different…

771w Current
Fixing HTML5 Audio Problems in iOS and Android Mobile Browsers to Overcome the Limitations

In one of my earlier posts I discussed some of the issues (or limitations) with HTML5 audio support in iOS and Android mobile and tablet platforms.

871w Current
Get the Duration of an Audio or Video File in Javascript

It is quite easy to get the playback length (in seconds) of an audio or video file.

248w Current
Controlling the Volume of an Audio File in Javascript

Just another quick tip. I’ll show you how to change the volume of an audio file of whatever format you are using – mp3, ogg, wav, aac, etc.

462w Current

More in HTML5

All HTML5 →