summaryrefslogtreecommitdiff
path: root/javascript
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-02-25 14:46:23 +0100
committerAlib <aliboba@free.fr>2010-02-25 14:46:23 +0100
commit7cede8e90389b9b557b95ef8e56ee0ad7efc6be5 (patch)
tree262cc03fe3551aec97d1c53bafca3ad1e8a906f1 /javascript
parentc72e1bcc2b818a021c7ff45079e3ecacff53171d (diff)
downloadistreamdev-7cede8e90389b9b557b95ef8e56ee0ad7efc6be5.tar.gz
istreamdev-7cede8e90389b9b557b95ef8e56ee0ad7efc6be5.tar.bz2
almost working streaming music... whoohoo
Diffstat (limited to 'javascript')
-rwxr-xr-xjavascript/functions.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/javascript/functions.js b/javascript/functions.js
index fd72eab..050ba0a 100755
--- a/javascript/functions.js
+++ b/javascript/functions.js
@@ -195,14 +195,14 @@ function checkform()
function addplayer(path,name,track) {
- playercode= "<embed target='myself' src=track[0] width='0' height='0' autoplay='false' type='audio/mp3' loop='true' controller='false' ";
-
- for ( var i=1; i=track.length; i+=1 ){
+ playercode= "<embed target='myself' src='" + track[0] + "' width='0' height='0' autoplay='false' name='player' type='audio/mp3' loop='true' controller='false' ";
+ for ( var i=1; i<track.length; i+=1 ){
playercode += "qtnext" + i + "='<" + track[i] + ">' ";
}
- playercode+= "</embed>";
+ playercode+= "></embed>";
playmusic(path,name);
+ alert(playercode);
document.getElementById('div_player').innerHTML = playercode;
}