mirror of
https://github.com/Pecusx/piradio-mini.git
synced 2026-05-20 22:33:44 +02:00
Web player problem in new version of Opera browser
This commit is contained in:
+2
-2
@@ -3,8 +3,8 @@ $line1 = file_get_contents( "/tmp/radiod/line1.txt" );
|
|||||||
$czyplayer = strpos($line1, "*");
|
$czyplayer = strpos($line1, "*");
|
||||||
if ($czyplayer != false) {
|
if ($czyplayer != false) {
|
||||||
list($realHost,)=explode(':',$_SERVER['HTTP_HOST']);
|
list($realHost,)=explode(':',$_SERVER['HTTP_HOST']);
|
||||||
echo '<audio controls><source src="http://';
|
echo '<audio src="http://';
|
||||||
echo $realHost;
|
echo $realHost;
|
||||||
echo ':8001/mpd" type="audio/mp3">Your browser does not support the audio element.</audio>';
|
echo ':8001/mpd" type="audio/mp3" controls="true">Your browser does not support the audio element.</audio>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user