Embed Music Player

Topics: Customizing Orchard, Troubleshooting, Writing themes
Dec 19, 2011 at 8:09 PM



I am attempting to embed this music player script.

<script type="text/javascript" src="http://scmplayer.net/script.js" ></script>
<script type="text/javascript">
SCMMusicPlayer.init("{'skin':'','playback':{'autostart':'false','shuffle':'false','volume':'50'},'playlist':[{'title':'Rick Ross // Hustlin%27','url':'http://www.trikzntipz.com/media/default/music/hustlin.mp3'}],'placement':'bottom','showplaylist':'false'}");

It requires that it be placed before the body tag. I uploaded the song to my media folder. It appears not to be working. Any ideas?


TJ Havens

Dec 19, 2011 at 8:42 PM

Any JS errors? If you use Firebug, can you see an attempted request for the .mp3 file?

Dec 19, 2011 at 10:28 PM

I solved it. Thank you, check it out on www.trikzntipz.com