Media player with HTML and JavaScript: For http web server (no streaming).
No plugins, no libraries, no Active X.
No embed, no database, no php etc..
All in One player includes:
Media player for browser: Internal player with VIDEO tag (HTML 5) e.g. Opera.
Maybe Microsoft Internet Explorer (IE) supports html 5 media.
Warning: Google Chrome is not compatible: See description in htdemoprg.js
and use example of code to clear the bug (change htdemoprg.js to clear the bug).
Media player for Microsoft Internet Explorer (IE): Internal player with BGSOUND tag.
Useful for browsers with no support of html 5 audio:
You can create audio in formats of mp3 and oga and put this files on webserver:
Fill out data for 2 players: 1 playlist contains only mp3 audio. The other playlist contains only html 5 audio oga.
IE without html 5 support (e.g. IE 8 and Windows XP) creates only mp3 player.
Opera or Firefox etc. create only oga player.
Both player can have same layout (or not if you want).
NOT Useful for browsers with no support of html 5 video:
IE without html 5 support (e.g. IE 8 and Windows XP) can not play html 5 video with BGSOUND:
It's time to use IE 9 (and NOT Windows XP) - better Opera (best choice) or Firefox - both Windows XP too - etc..
IE 9 need a plugin from Google to be able to play html 5 media ogg, oga, ogv, webm.
Opera and Firefox etc. need nothing else to play html 5 media ogg, oga, ogv, webm.
Playable media:
.mid Only playable in Microsoft Internet Eplorer.
.midi Only playable in Microsoft Internet Eplorer.
.aif Only playable in Microsoft Internet Eplorer.
.aiff Only playable in Microsoft Internet Eplorer.
.au Only playable in Microsoft Internet Eplorer.
.snd Only playable in Microsoft Internet Eplorer.
.mp3 Only playable in Microsoft Internet Eplorer.
.wma Only playable in Microsoft Internet Eplorer.
.wav playable with html 5 and Microsoft Internet Eplorer.
If browser supports html 5 then wave playable with html-5-player.
If browser do not supports html 5 AND IE exists then wave playable with BGSOUND-player.
.webm Browser must support html 5 media, maybe IE supports html 5 media.
.ogg Browser must support html 5 media, maybe IE supports html 5 media.
.oga Browser must support html 5 media, maybe IE supports html 5 media.
.ogv Browser must support html 5 media, maybe IE supports html 5 media.
Lame mp3 http://rarewares.org/index.php
Fraunhof mp3 http://www.iis.fraunhofer.de/en/bf/amm/produkte/audiocodec/audiocodecs/mp3/index.jsp
Google webm (VP8) http://www.webmproject.org/
Xiph ogg vorbis http://www.theora.org/
Xiph DirectX http://www.xiph.org/dshow/
FLAC http://flac.sourceforge.net/index.html
HTML-DOM and JavaScript:
Player must be created dynamically with HTML-DOM and JavaScript.
Player can NOT be created statically WITHOUT HTML-DOM and JavaScript.
Playlist of player must be created dynamically with HTML-DOM and JavaScript:
Very simple code in html document for multible implementation of players (with own layout and playlist).
Simple code (data and layout of player) in 1 js-file.
Play and management of playlist do not need any code in JavaScript:
No additionally code in js-file, no library.
Optionally: Player can be limited supported by JavaScript (action and style).
Some public simple funtions are useable e.g. communication with player.
Warning: Google Chrome is not compatible: See description in htdemoprg.js
and use example of code to clear the bug (change htdemoprg.js to clear the bug).
Here are the players
Warning: Google Chrome is not compatible: See description in htdemoprg.js
and use example of code to clear the bug (change htdemoprg.js to clear the bug).
Player1
HTplayer1
Player2
HTplayer2
Create your own media player and have fun !