Files
rpigroupplay/pages/page/player_tv.php
T
alexspeakerandClaude Fable 5.1 24391c49ac vers. 3.0.0 - nuova interfaccia app per mobile e desktop
Nuova UI disegnata sul tema RPIGroup Radio Theme dei siti del gruppo:
guscio unico responsive (sidebar e player in basso da 900px, topbar e
tab bar su telefono), player della radio persistente nel dock con
now playing, HLS/MP3, volume e Media Session; pagine radio, tv,
podcast (copertine e programma dal feed), player e pagine di testo
rifatte; icone SVG inline al posto di Bootstrap, jQuery e Material
Icons; font Bricolage Grotesque e Plus Jakarta Sans in locale;
service worker v5, manifest con orientamento libero, icone PWA 192 e
384 rigenerate.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-06 14:56:08 +01:00

48 lines
1.8 KiB
PHP

<?php
// Vista di una web TV: barra con "torna a TV" e nome, poi il video (flusso HLS, js/app.js lo avvia).
if (!isset($station) || empty($station)) {
include './pages/page/404.php';
return;
}
$station_name = (string)$station->name;
$station_logo = (string)$station->logo;
$station_stream = (string)$station->stream;
$station_poster = isset($station->poster) ? (string)$station->poster : '';
?>
<section class="tv-view fill-view" aria-label="<?= htmlspecialchars($station_name) ?>">
<div class="view-bar">
<?= rpi_back_pill('tv', 'TV') ?>
<div class="view-title">
<strong><?= htmlspecialchars($station_name) ?></strong>
<span>Web TV in diretta</span>
</div>
<span class="chip chip-live"><span class="live-dot"></span> Live</span>
</div>
<div class="tv-stage">
<div class="tv-player">
<video id="tvVideoPlayer"
controls
playsinline
preload="none"
data-src="<?= htmlspecialchars($station_stream) ?>"
<?php if ($station_poster !== ''): ?>poster="<?= htmlspecialchars($station_poster) ?>"<?php endif; ?>
aria-label="Video di <?= htmlspecialchars($station_name) ?>"></video>
<p class="tv-error" role="status" hidden></p>
</div>
<?php if ($station_logo !== ''): ?>
<div class="tv-caption">
<img src="<?= htmlspecialchars($station_logo) ?>" alt="" width="40" height="40">
<div>
<strong><?= htmlspecialchars($station_name) ?></strong>
<span>La diretta video del canale. Mentre guardi la TV la radio si mette in pausa.</span>
</div>
</div>
<?php endif; ?>
</div>
</section>