This is an example of how fhPlayer should look when implemented properly. Note that you may need to adjust your settings in order for Flash to work offline! The minimum code required to properly implement fhPlayer 0.3.0 is as follows:
<script type="text/javascript" src="fhplayer.js"></script>
<script type="text/javascript">
window.onload = function() { fhPlayer("fhPlayer"); }
</script>
<div id="fhPlayer" swf="/path/to/musicplayer.swf" playlist="/path/to/1st-audio-file;name-of-1st-audio-file|/path/to/2nd-audio-file;name-of-2nd-audio-file|/path/to/3rd-audio-file;name-of-3rd-audio-file [etc.]"></div>
For an online example, click here.
Known issues:
- This page may look wrong in Internet Explorer.
- In Firefox, the controls may not show up at all. In the event that this happens, I've implemented a basic fallback mode using HTML <input> tags.
- The trackbar won't work for audio formats that are not natively-supported.
- Browsers that do not support native Ogg Vorbis audio will need the Java plugin.
- Browsers that do not support native MP3 audio will need the Flash plugin.
- There is no fallback mode for AAC, WAV, and WebM, except for attempting to load the file in an iframe and relying on whatever plugins the browser may have installed.
|
|