<script type="text/javascript">
jwplayer("mediaplayer").setup({
"modes": [
{type: "html5"},
{type: "flash",
{src: 'media/mint/jwplayer/player.swf"},
{type: "download"}
]
});
</script>This is how I set up th player. I use it to play only audio files. i also set size and controls but those are not important for my question. Now in the bottom I have
<ul>
<li>Mozart #1</li>
</ul>This all works great no problems. I have long list of audio there. Here is what i cannot solve
1. In firefox it loads HTML5 although it does not support MP3 in html 5 and when I click it does not work. I know I can solve it by pointing initial file for it and if it is MP3 it will load flash but here is next problem.
2. I have 3 file types on the server. It is MP3, OGG or sometimes WAV. It depends what file is uploaded. But I have at least 2 file versions to be suported in every browser with HTML5.
Can I somehow in jwplayer().load('/mozart.mp3') indicate few files and let player detect what if the best format to play?
It eraised in LI I have onclick="jwplayer().load('mozart.mp3')"