how to build my own mp3 player (with js)
i want to build my own mp3 player, that i can change song, and change the current position in the song, i want it to be supported in all browsers, so I can't relay on the audio tag. and all the solutions I founded so far base on it
i managed to found out this:
<object
classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id='player2' height=75>
<param name="CurrentPosition" value="50" />
<param name="ShowPositionControls" value="false" />
<param name="ShowStatusBar" value="true" />
<param name="AutoStart" value="0" />
<param name="Filename" value="music/backstreet boys - one in a million.mp3" />
</object>
but. there's two problems:
- the parameter 'CurrentPosition' doesn't seems to be affecting
- no refrence i founded is good. no propery (in js) for current 开发者_如何学Pythonposion i founded is not working
use actionscript (with flash/flex ofc). Checkout the flash.media package (and SoundMixer.computeSpectrum if you want to add some kind of visualisations). There's really much you can do with flash that's still not available in js.
精彩评论