I have not used SM2, so I can not talk about it.
However, if jQuery is an option, I got lucky with jquery.mb.miniAudioPlayer , which is based on jPlayer .
Here is an example of a minimal amount of markup / code:
<script type="text/javascript" src="inc/jquery/1.3.2.min.js"></script> <script type="text/javascript" src="inc/mbScrollable.js"></script> <script type="text/javascript"> $(function(){ $(".audio").mb_miniAudioPlayer({ width:240, inLine:false }); }); </script> <div id="myScroll"> <a id="m1" class="audio {ogg:'http://www.miaowmusic.com/ogg/Miaow-07-Bubble.ogg', mp3:'http://www.miaowmusic.com/ogg/Miaow-07-Bubble.mp3'}" href="javascript:void(0)">miaowmusic - Bubble (mp3/ogg) </a> </div>
(as seen on this page - click βlike.β)
Or, in other words, use the breakdown: yes, there is a <script> tag that "enters" the player code in the DOM.
source share