I've revised the patch which I'm testing atm - good so far. A couple of
small issues:
1. When playing a podcast, there's no "station" info (as I originally
conceived). LMS puts in a shortened version of the meta title in
track->title. I'm filtering that out if it matches the metadata title
provided in $remoteMeta - it makes no sense to provide that as
"station".
2. The above highlights an issue: track->title isn't always the station
name. Originally I made a best guess as that's the closest I could get
to match Squeezeplay UI. track->title actually appears to be the
"favourite name" when streaming a favourite - except when making initial
connection - see below. A specific example - streaming from Tunein,
station name is contained (with further station-related metadata), in
the data stream when LMS connects - a gzipped XML fragment is returned -
see below, captured with Wireshark. Question - is this available
somewhere when streaming, if so how can I retrieve ?
The Squeezeplay UI also shows the favourite name, not this meta once it
gets going, but often shows this meta momentatarily.
If you search Tunein, the meta below is shown in search results
(Actually just 2 lines: "Hirschmilch Radio Chillout" and "Underground
Electronic Music For Hippies"). If you play that stream from the search
results (not a favourite), it is output as track->title, and on the UI,
so it is being decoded and cached somewhere - where ?
Code:
--------------------
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1">
<head>
<status>200</status>
<ttl>43200</ttl>
</head>
<body>
<outline type="text" text="Hirschmilch Radio Chillout" guide_id="s111987"
key="station" image="http://cdn-radiotime-logos.tunein.com/s111987q.png"
preset_id="s111987"/>
<outline type="text" text="Underground Electronic Music For Hippies"/>
<outline type="text" text="Berlin, Germany"/>
</body>
</opml>
--------------------
Similarly, if streaming from a local Icecast server, I can see
"icy-name" etc in the header of the stream, like this:
Code:
--------------------
HTTP/1.1 200 OK
Date: Fri, 15 May 2020 19:20:39 GMT
Server: Apache/2
Connection: close
icy-br: 192000
icy-sr: 48000
icy-name: BBC Radio 4
icy-metaint: 8192
Content-Type: audio/mpeg
--------------------
icy-name shows on a Squeezeplay UI momentarily (and is output in
track-title) before more detailed meta packets are received: like this
example:
StreamTitle='Any Questions? - Chris Mason presents political debate and
discussion from London Broadcasting House with Minette Batters, Harriet
Harman MP, Dr Chaand Nagpaul and Helen Whately MP ~
Once that meta arrives, the "favourite name" is shown for the stream
name on the UI instead of icy-name (and track->title changes to match).
I think the UI (and what I'm reporting) could be improved if the stream
header info (stream name) is always used. But perhaps that's not the
intention of this UI element, maybe the intent is to show the favourite
name, not stream name ? But it's definition changes unnecessarily
mid-stream, which is the concern
Appreciate your guidance!
------------------------------------------------------------------------
keynet's Profile: http://forums.slimdevices.com/member.php?userid=68229
View this thread: http://forums.slimdevices.com/showthread.php?t=111936
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter