radio/web player: additional HLS streams created for each station [prev. only main was supported on iOS]
This commit is contained in:
@@ -51,8 +51,10 @@ export function Player() {
|
|||||||
|
|
||||||
const playStream = () => {
|
const playStream = () => {
|
||||||
let streamPath = STATIONS[activeStation].streamPath;
|
let streamPath = STATIONS[activeStation].streamPath;
|
||||||
if (activeStation === "main" && isIOS) {
|
if (isIOS) {
|
||||||
streamPath = "/hls/sfm.m3u8";
|
let lcStation = activeStation.toLowerCase();
|
||||||
|
streamPath = `/hls/${lcStation}/${lcStation}.m3u8`;
|
||||||
|
console.log(`Replaced streamPath: ${streamPath}`);
|
||||||
}
|
}
|
||||||
const streamUrl =
|
const streamUrl =
|
||||||
"https://stream.codey.lol" +
|
"https://stream.codey.lol" +
|
||||||
|
Reference in New Issue
Block a user