diff options
-rwxr-xr-x | genplaylist.php | 3 | ||||
-rwxr-xr-x | includes/inc_audio.php | 4 | ||||
-rwxr-xr-x | javascript/ajax.js | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/genplaylist.php b/genplaylist.php index 2df6270..cd08fcc 100755 --- a/genplaylist.php +++ b/genplaylist.php @@ -5,7 +5,6 @@ else include ('config_default.php'); include ('includes/inc_files.php'); - header('Content-Type: text/xml'); echo "<?xml version=\"1.0\"?>\n"; echo "<status>\n"; @@ -43,7 +42,7 @@ $found=1; if ($found) - fwrite($plfile, "playlist/" .$medianame_array[$cnt] ."\n"); + fwrite($plfile,$httppath . "playlist/" .$medianame_array[$cnt] ."\n"); } fclose($plfile); diff --git a/includes/inc_audio.php b/includes/inc_audio.php index 0c2d358..df7e401 100755 --- a/includes/inc_audio.php +++ b/includes/inc_audio.php @@ -75,8 +75,8 @@ if ($medianame_array[0]) print("</div>"); print "<div style=\"position:absolute; left:0; top:0\">\r\n"; - print "<embed enablejavascript=\"true\" autoplay=\"false\" height=\"0\" name=\"player\""; - print " src=\"{$httppath}playlist/playlist.m3u\""; + print "<embed enablejavascript=\"true\" autoplay=\"false\" height=\"0\" id=\"s1\" name=\"s1\""; + print " src=\"playlist/playlist.m3u\""; print " width=\"0\" loop=\"true\" controller=\"false\""; print " />\r\n"; diff --git a/javascript/ajax.js b/javascript/ajax.js index a33bdf9..40ca661 100755 --- a/javascript/ajax.js +++ b/javascript/ajax.js @@ -51,6 +51,8 @@ function openpls(xhr) if ( streamstatus == 'error' ) this.location.href = 'error.php'; else - document.player.Play() + + this.location.href = 'playlist/playlist.m3u'; + //document.s1.Play(); } } |