<!DOCTYPE html>
<html lang=”pl”>
<head>
<meta charset=”UTF-8″>
<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>
<title>Polskie Radio Sydney – Live Stream</title>
<style>
body {
font-family: Arial, sans-serif;
background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
color: white;
}
.radio-player {
background: rgba(255, 255, 255, 0.2);
padding: 2rem;
border-radius: 20px;
text-align: center;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(10px);
}
h1 {
margin: 0 0 1rem;
font-size: 2rem;
}
audio {
width: 300px;
height: 50px;
margin: 1rem 0;
border-radius: 10px;
}
.controls {
display: flex;
align-items: center;
justify-content: center;
gap: 1rem;
margin-top: 1rem;
}
button {
background: #ff6b6b;
color: white;
border: none;
padding: 0.8rem 1.5rem;
border-radius: 50px;
font-size: 1rem;
cursor: pointer;
transition: background 0.3s;
}
button:hover {
background: #ff5252;
}
button:disabled {
background: #666;
cursor: not-allowed;
}
.status {
margin-top: 1rem;
font-weight: bold;
}
@media (max-width: 480px) {
audio { width: 250px; }
h1 { font-size: 1.5rem; }
}
</style>
</head>
<body>
<div class=”radio-player”>
<h1>🇵🇱 Polskie Radio Sydney</h1>
<p>PRS24 – Live na żywo</p>
<audio id=”radioStream” preload=”none”>
Your browser does not support the audio element.
</audio>
<div class=”controls”>
<button id=”playBtn”>▶️ Odtwórz</button>
<button id=”pauseBtn” disabled>⏸️ Wstrzymaj</button>
<label for=”volume”>Głośność: </label>
<input type=”range” id=”volume” min=”0″ max=”1″ step=”0.1″ value=”0.5″>
</div>
<div id=”status” class=”status”>Gotowy do odtwarzania</div>
</div>
<script>
const audio = document.getElementById(‘radioStream’);
const playBtn = document.getElementById(‘playBtn’);
const pauseBtn = document.getElementById(‘pauseBtn’);
const volumeSlider = document.getElementById(‘volume’);
const status = document.getElementById(‘status’);
// Stream URL from Polskie Radio Sydney live page
const streamUrl = ‘https://polskieradiosydney.com.au/na-zywo/‘; // Direct access via site; browser fetches stream [\[9\]](https://polskieradiosydney.com.au/na-zywo/)
audio.src = streamUrl; // Note: Use site embed or direct HLS/MP3 if available; test for CORS
// Fallback: Direct stream if known (replace if you have exact MP3/HLS URL from inspection)
// audio.src = ‘https://example-stream-url-from-prs24.m3u8‘;
volumeSlider.addEventListener(‘input’, (e) => {
audio.volume = e.target.value;
});
playBtn.addEventListener(‘click’, async () => {
try {
status.textContent = ‘Ładowanie streamu…’;
await audio.play();
playBtn.disabled = true;
pauseBtn.disabled = false;
status.textContent = ‘Na żywo – Polskie Radio Sydney’;
status.style.color = ‘#4ecdc4’;
} catch (err) {
status.textContent = ‘Błąd: ‘ + err.message + ‘. Sprawdź połączenie lub stronę radia.’;
}
});
pauseBtn.addEventListener(‘click’, () => {
audio.pause();
playBtn.disabled = false;
pauseBtn.disabled = true;
status.textContent = ‘Zatrzymane’;
});
audio.addEventListener(‘error’, (e) => {
status.textContent = ‘Błąd streamu. Odwiedź bezpośrednio: polskieradiosydney.com.au/na-zywo/ [\[9\]](https://polskieradiosydney.com.au/na-zywo/)’;
});
audio.addEventListener(‘loadstart’, () => {
status.textContent = ‘Połączono ze streamem…’;
});
// Auto-pause on page visibility change (for mobile battery)
document.addEventListener(‘visibilitychange’, () => {
if (document.hidden) {
audio.pause();
}
});
</script>
</body>
</html>
PRS24/worldometers.info











