

Radyomuzu web sitenize ekleyerek site üyelerinize
kaliteli ve hit müzik ziyafeti sunun..
Siten de bu şekilde görünür.
ÖRNEK GÖRÜNTÜ
Siten de bu şekilde görünür.
ÖRNEK GÖRÜNTÜ
GELİŞMİŞ PLAYER
<!doctype html>
<html lang="tr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>BalkanikaFM — Cam Efektli Gelişmiş Player</title>
<style>
:root {
--accent1: #00f5d4;
--accent2: #00b4d8;
--text: #ffffff;
--muted: rgba(255,255,255,0.7);
--glass: rgba(255,255,255,0.08);
}
body {
margin: 0;
background: transparent;
font-family: "Poppins", sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
.player {
width: 340px;
border-radius: 20px;
background: var(--glass);
backdrop-filter: blur(16px) saturate(160%);
-webkit-backdrop-filter: blur(16px) saturate(160%);
border: 1px solid rgba(255,255,255,0.2);
padding: 16px;
display: flex;
align-items: center;
gap: 14px;
box-shadow: 0 4px 20px rgba(0,0,0,0.4);
color: var(--text);
position: relative;
}
.cover {
width: 70px;
height: 70px;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 0 12px rgba(0,255,255,0.3);
}
.cover img {
width: 100%;
height: 100%;
object-fit: cover;
}
.meta {
flex: 1;
overflow: hidden;
}
.title {
font-weight: 600;
font-size: 14px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.info {
font-size: 12px;
color: var(--muted);
margin-top: 4px;
}
.controls {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
}
button {
background: linear-gradient(135deg, var(--accent1), var(--accent2));
border: none;
border-radius: 50%;
width: 42px;
height: 42px;
color: #fff;
font-size: 16px;
cursor: pointer;
box-shadow: 0 0 12px rgba(0,255,255,0.4);
transition: 0.2s;
}
button:hover {
transform: scale(1.1);
box-shadow: 0 0 18px rgba(0,255,255,0.7);
}
.volume {
-webkit-appearance: none;
width: 70px;
height: 4px;
border-radius: 4px;
background: rgba(255,255,255,0.2);
outline: none;
cursor: pointer;
}
.volume::-webkit-slider-thumb {
-webkit-appearance: none;
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--accent1);
}
/* Equalizer */
.equalizer {
position: absolute;
bottom: 10px;
right: 10px;
display: flex;
gap: 3px;
height: 18px;
align-items: flex-end;
}
.bar {
width: 3px;
background: linear-gradient(180deg,var(--accent1),var(--accent2));
border-radius: 2px;
animation: bounce 1s infinite ease-in-out;
}
.bar:nth-child(2){animation-delay:0.2s}
.bar:nth-child(3){animation-delay:0.4s}
.bar:nth-child(4){animation-delay:0.6s}
.bar:nth-child(5){animation-delay:0.8s}
@keyframes bounce {
0%,100%{height:3px;opacity:0.7}
50%{height:18px;opacity:1}
}
@media (max-width:420px){
.player{width:280px;padding:12px;}
.cover{width:60px;height:60px;}
button{width:38px;height:38px;}
}
</style>
</head>
<body>
<div class="player">
<div class="cover"><img id="coverImg" src="" alt="Kapak"></div>
<div class="meta">
<div class="title" id="title">Bağlanıyor...</div>
<div class="info" id="info">Dinleyici: —</div>
<input type="range" min="0" max="1" step="0.05" value="0.7" class="volume" id="volume">
</div>
<div class="controls">
<button id="playBtn">▶</button>
</div>
<div class="equalizer">
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
<div class="bar"></div>
</div>
</div>
<audio id="audio" preload="none"></audio>
<script>
const audio = document.getElementById('audio');
const playBtn = document.getElementById('playBtn');
const titleEl = document.getElementById('title');
const infoEl = document.getElementById('info');
const coverImg = document.getElementById('coverImg');
const volumeSlider = document.getElementById('volume');
const streamUrl = "https://ssl22.radyotelekom.com/8188/stream";
const apiUrl = "https://ssl22.radyotelekom.com/cp/get_info.php?p=8188";
let playing = false;
playBtn.addEventListener('click', () => {
if (!playing) {
audio.src = streamUrl;
audio.play();
playBtn.textContent = "❚❚";
playing = true;
} else {
audio.pause();
playBtn.textContent = "▶";
playing = false;
}
});
volumeSlider.addEventListener('input', e => {
audio.volume = e.target.value;
});
async function updateMeta(){
try {
const res = await fetch(apiUrl);
const data = await res.json();
const title = data.songtitle || data.title || "BalkanikaFM";
const listeners = data.listeners || data.online_listeners || "—";
const cover = data.albumart || data.image || "";
titleEl.textContent = title;
infoEl.textContent = "Dinleyici: " + listeners;
coverImg.src = cover || "https://i.ibb.co/vJVmVKp/balkanika-default.jpg";
} catch(e){
titleEl.textContent = "Bağlantı hatası";
}
}
updateMeta();
setInterval(updateMeta, 15000);
</script>
</body>
</html>


