From 9e894ebecfe32c6df30897003c2b0464c7ea20fa Mon Sep 17 00:00:00 2001 From: codey Date: Sat, 19 Jul 2025 21:43:28 -0400 Subject: [PATCH] radio/web player: additional HLS streams created for each station [prev. only main was supported on iOS] --- src/components/AudioPlayer.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/AudioPlayer.jsx b/src/components/AudioPlayer.jsx index 01e5964..5019634 100644 --- a/src/components/AudioPlayer.jsx +++ b/src/components/AudioPlayer.jsx @@ -51,8 +51,10 @@ export function Player() { const playStream = () => { let streamPath = STATIONS[activeStation].streamPath; - if (activeStation === "main" && isIOS) { - streamPath = "/hls/sfm.m3u8"; + if (isIOS) { + let lcStation = activeStation.toLowerCase(); + streamPath = `/hls/${lcStation}/${lcStation}.m3u8`; + console.log(`Replaced streamPath: ${streamPath}`); } const streamUrl = "https://stream.codey.lol" +