Integrare audio streaming nel proprio sito web aumenta engagement e personalità. Le opzioni vanno da widget pronti (radio, playlist) a soluzioni self-hosted per controllo totale.
Architettura: Unicast vs Multicast
- Unicast (1:1): Ogni listener = flusso separato dal server. Banda = bitrate × listener. Limite: banda server upload.
- Multicast (1:molti): Server invia 1 flusso → rete lo replica ai listener. Efficiente ma richiede supporto ISP/rete (raramente disponibile su hosting condiviso/VPS standard).
- CDN/HLS/DASH (standard moderno): Server origine → CDN (Cloudflare, AWS CloudFront, Bunny.net) → listener via segmenti HTTP (HLS/DASH). Scalabile, cacheabile, compatibile browser nativo. Consigliato.
Opzione 1: Widget radio/streaming pronti (più semplice)
| Servizio | Tipo | Widget/Embed | Costo | Note |
|---|---|---|---|---|
| Spotify | Playlist/Album/Artista/Podcast | Gratuito (richiede account) | Solo anteprima 30s per non Premium; branding Spotify | |
| SoundCloud | Brani/Playlist/Profilo | Gratuito / Pro | Ottimo per artisti indipendenti, commenti timestamp | |
| Mixcloud | DJ set/Podcast/Radio show | Gratuito | Licenze incluse per cover/remix, no download | |
| YouTube Music / YouTube | Video/Brani/Playlist | Gratuito | Video + audio, vasto catalogo, annunci | |
| Radio.co / RadioKing / Airtime Pro | Stazione radio live 24/7 | Player embed + app | Da ~$15-30/mese | Gestione palinsesto, DJ remoti, statistiche, monetizzazione |
| Live365 | Radio internet + licenze | Player embed + directory | Da ~$15/mese | Include licenze BMI/ASCAP/SESAC/SoundExchange (USA) |
| Radionomy | Radio gratis + monetizzazione adv | Player embed | Gratuito (adv obbligatori) | Ora parte di Shoutcast/TargetSpot |
Embed generico (es. Spotify)
- Apri playlist/brano su Spotify Web/Desktop.
- ••• (tre punti) → Condividi → Incorpora traccia/playlist.
- Copia codice
<iframe src="..." width="300" height="380" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>. - Incolla in HTML pagina (editor blocchi WordPress: "HTML personalizzato"; HTML puro: nel body).
- Personalizza:
width="100%"per responsive,height="400"per playlist.
Opzione 2: Self-hosted streaming (controllo totale)
Per trasmettere propri file audio (podcast, musica originale, archivi) senza dipendere da terze parti.
Stack consigliato 2024: Icecast + HLS + Player web
- Server: VPS/Cloud (Hetzner, DigitalOcean, Linode, Contabo) 2-4 GB RAM, 2 vCPU, 1 TB banda (~€5-10/mese).
- Software streaming: Icecast2 (open source, standard) o Liquidsoap (scriptable, avanzato).
- Source client (invia audio a Icecast):
- Live: Butt (broadcast using this tool - gratuito, cross-platform), Nicecast (Mac), Rocket Broadcaster (Win).
- Auto-playlist: Liquidsoap (script playlist + jingle + live override), AzuraCast (web UI completa per gestione stazione, Docker).
- Trasmissione HLS (HTTP Live Streaming): Icecast → FFmpeg (ricodifica segmento .ts + playlist .m3u8) → serviti via Nginx + CDN (Cloudflare gratuito).
- Player web: hls.js (JS library, riproduce HLS in browser senza Flash) + HTML5
<video>/<audio>tag. Oppure Video.js, Plyr, MediaElement.js.
Alternativa "batterie incluse": AzuraCast (azuracast.com) - Docker install, web UI per: upload brani, playlist, DJ live, listener stats, API, HLS/DASH player embed, licenze reporting. Consigliato per DIY serio.
Opzione 3: Podcast / Audio on-demand (non live)
Se non serve live: host file MP3/M4A + feed RSS + player embed.
- Hosting: Buzzsprout, Transistor, Podbean, Anchor (Spotify), Castopod (self-hosted, open source).
- Player embed: Fornito da host o Podlove Web Player (open source, avanzato, Chapter marks, speed control, download).
Aspetti legali (CRITICO)
- Musica commerciale (Spotify, radio, MP3 comprati): NON puoi trasmetterla sul tuo sito (né live né on-demand) senza licenze. Rischio: DMCA takedown, cause legali, multe.
- Licenze per webcasting (USA): SoundExchange (master recording) + BMI/ASCAP/SESAC (composizione) → Live365, Radio.co le includono nel piano.
- Musica royalty-free / Creative Commons / Propria: OK. Fonti: YouTube Audio Library, FMA, Incompetech, Musopen (classica), Epidemic Sound (abbonamento).
- Podcast: Musica in episodi = serve licenza sync (diversa da webcasting). Usa solo royalty-free.
Checklist implementazione
- Definisci: Live? On-demand? Musica commerciale o propria/RF?
- Scegli: Widget (Spotify/SoundCloud) → 5 min | AzuraCast (DIY live) → 1-2 ore setup | Podcast host → 30 min.
- Testa: Mobile/desktop, HTTPS, player responsive, controlli volume/play.
- Monitora: Statistiche listener (AzuraCast, Live365, Spotify for Artists, hosting podcast).
- Legal: Verifica licenze per OGNI brano trasmesso.
- Come usare iPod come chiavetta USB: abilitare "Uso disco" e trasferire file
- Come scaricare video online sul PC: metodi nativi e tool dedicati
Windows 7
- Come resettare il PIN Controllo Genitori su Nintendo Wii
- Mass Effect: come vincere a Quasar (strategia ottimale per puntate basse/alte)
- Idee per "Fear Factor" fai-da-te a casa (giochi e sfide)
- Come masterizzare una copia DVD riproducibile su lettore DVD
- Come aprire file .NCO (Nero BackItUp) su Windows
- Eliminare brani, video, foto da iPod classic: sincronizzazione automatica o gestione manuale
- Ottimizzare le prestazioni di FarmVille: guida pratica
- Come fare la "sterzata a terra" (Ground Pound) con Donkey Kong in Donkey Kong Country Returns (Wii)