PDA

View Full Version : embed pls link



philmetz
29 Dec 2010, 09:12 AM
Is it possible to embed a pls link in javascript?

I tried this but doesnt seem to work, what can i do?



function Play () {
var path = '<embed src="http://www.link.com/music.pls" autostart="true" loop="false" hidden="true" height="0" width="0">';
document.getElementById (file).innerHTML = path + '<img src="images/stop.gif" style="cursor:pointer;" onclick="Stop(' + "'" + file + "'" + ')">';
}
function Stop (file) {
document.getElementById (file).innerHTML = '<img src="images/play.gif" style="cursor:pointer;" onclick="Play(' + "'" + file + "'" + ')">';
}
</script>

philmetz
29 Dec 2010, 12:41 PM
Think its impossible, but it should be possible to play .pls or .asx, any ideas?