<title>360° MP3 player UI demo (SoundManager 2)</title>
<metaname="robots"content="noindex"/>
<metaname="description"content="Javascript-driven sound, canvas-based MP3 player UI demo: 360-degree circular control / jog wheel example for playing MP3 links using SoundManager 2, Javascript and Canvas.">
<pclass="note"style="color:#666;margin-bottom:0.5em">Canvas-based UI. Load progress, seek, play/pause etc. Also see <ahref="canvas-visualization.html"title="Javascript canvas visualization with waveform/eq data">360° UI visualization</a> demo.</p>
<divid="sm2-container">
<!-- flash movie is added here -->
</div>
<divstyle="margin-top:1.25em">
<divstyle="float:left;display:inline"><!-- float is just for this demo layout, you don't need it. -->
<divclass="ui360"><ahref="http://www.freshly-ground.com/data/audio/binaural/Things that open, close and roll.mp3">Things that open, close and roll</a></div>
<p>The player's default 50x50-pixel canvas is defined both within JavaScript and CSS. For an example with different values, see this <ahref="canvas-visualization.html"title="360° UI: larger version">larger version</a>.</p>
<p>The CSS for the canvas UI block is a bit ugly, but JavaScript reads the width of the <code>.sm2-360ui</code> element in the DOM as set by CSS and uses that to later draw and update the canvas element while playing.</p>
<preclass="block"><code>.ui360,
.sm2-360ui {
<span><span>/* size of the container for the circle, etc. */</span></span>
width:<span>50px</span>;</span>
height:<span>50px</span>;</span>
}
</code></pre>
<h3>Third-party Components</h3>
<p>This demo includes use of <ahref="http://www.berniecode.com/writing/animator.html">Bernie's Better Animation Class</a> (Apache licensed) for some animation effects.</p>
<p>Also, some loader/spinner icons from <ahref="http://ajaxload.info">ajaxload.info</a> are used for showing loading/buffering states.</p>
<hr/>
<p>
<ahref="http://www.schillmania.com/projects/soundmanager2/"title="SoundManager 2 home">SoundManager 2 project page</a> (not an MP3 link)