diff options
author | Alib <aliboba@free.fr> | 2010-02-25 14:46:23 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-02-25 14:46:23 +0100 |
commit | 7cede8e90389b9b557b95ef8e56ee0ad7efc6be5 (patch) | |
tree | 262cc03fe3551aec97d1c53bafca3ad1e8a906f1 | |
parent | c72e1bcc2b818a021c7ff45079e3ecacff53171d (diff) | |
download | istreamdev-7cede8e90389b9b557b95ef8e56ee0ad7efc6be5.tar.gz istreamdev-7cede8e90389b9b557b95ef8e56ee0ad7efc6be5.tar.bz2 |
almost working streaming music... whoohoo
-rwxr-xr-x | includes/inc_audio.php | 2 | ||||
-rwxr-xr-x | javascript/functions.js | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/includes/inc_audio.php b/includes/inc_audio.php index de7b616..414b885 100755 --- a/includes/inc_audio.php +++ b/includes/inc_audio.php @@ -88,7 +88,7 @@ if ($medianame_array[0]) print("</div>"); - print "<div style=\"position:absolute; left:0; top:0\" id=\"div_player\">\r\n"; + print "<div style=\"position:absolute; left:0; top:0\" name=\"div_player\" id=\"div_player\">\r\n"; print("</div>"); } 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;
}
|