Shimichanga

Experimental HTML5 audio/video shim with fully native HTML5 syntax wrapped around HTML5, Flash, YouTube, JSMad, and other libraries. github.com/johndyer/shimichanga.

Video Player

document.getElementById('player1').src = 'media/big_buck_bunny.mp4'; document.getElementById('player1').load(); document.getElementById('player1').src = 'media/big_buck_bunny.webm'; document.getElementById('player1').load(); document.getElementById('player1').src = 'media/echo-hereweare.mp4'; document.getElementById('player1').load(); document.getElementById('player1').src = 'media/echo-hereweare.webm'; document.getElementById('player1').load(); document.getElementById('player1').src = 'http://www.youtube.com/watch?feature=player_embedded&v=Vof3CzSXtAI'; document.getElementById('player1').src = 'http://www.youtube.com/watch?v=9bZkp7q19f0'; document.getElementById('player1').src = 'http://youtu.be/xmWuqd5y77M'; document.getElementById('player1').load(); document.getElementById('player1').play(); document.getElementById('player1').pause(); document.getElementById('player1').muted = false; document.getElementById('player1').muted = true; document.getElementById('player1').volume = 0.5; document.getElementById('player1').volume = 1; document.getElementById('player1').currentTime = 26;

Audio Player

document.getElementById('player2').src = 'media/audio.ogg'; document.getElementById('player2').load(); document.getElementById('player2').src = 'media/AirReview-Landmarks-02-ChasingCorporate.mp3'; document.getElementById('player2').load(); document.getElementById('player2').load(); document.getElementById('player2').play(); document.getElementById('player2').pause(); document.getElementById('player2').muted = false; document.getElementById('player2').muted = true; document.getElementById('player2').volume = 0.5; document.getElementById('player2').volume = 1; document.getElementById('player2').currentTime = 26;