rbackhouse / MaximumMPD

React Native based MPD Client for iOS and Android
MIT License
45 stars 4 forks source link

web radio in playlist: display current playing title if avail #92

Closed macmpi closed 1 year ago

macmpi commented 1 year ago

I have a .m3u playlist with webradios as follows:

#EXTM3U

#EXTINF:-1, Radio Paradise - Main Mix
http://stream.radioparadise.com/aac-128

#EXTINF:-1, TSF Jazz - Direct
http://tsfjazz.ice.infomaniak.ch:80/tsfjazz-high

Main playback window does show currently playing stream fine, but lacks currently playing title if stream does provide it. Typical case is with Radio Paradise. Standard console mpc client does return current title, but MaximumMPD does not show it: would be nice addition. Thanks!

rbackhouse commented 1 year ago

It appears the problem is that the "name" tag is overriding the "title" tag where is should be the opposite

rbackhouse commented 1 year ago

Fixed in version 5.5 now in the App Stores

macmpi commented 1 year ago

Thanks. However the stream name is now omitted, and keeping it in addition to track title would be great to remember which item name (like radio station) we are playing in playlist. Makes sense?

rbackhouse commented 1 year ago

The problem is that currently the Play screen has no knowledge that its a url stream. It takes the "artist" and "album" tag from the current song, uses "title" or "name" if "title is not present and then formats a time value.

If there is a protocol to follow for the streams i could use the stream name is one of the other values but it seems they vary quite a bit.

macmpi commented 1 year ago

To illustrate my point: command-line mpc does report stream name and currently playing title

$ mpc
Radio Paradise (128k aac): Cracker - The Golden Age
[playing] #7/8   0:34/0:00 (0%)
volume:100%   repeat: on    random: off   single: off   consume: off

while MaximuMPD only shows: image

rbackhouse commented 1 year ago

I'm looking to identify streaming sources by checking that the file value starts with "http://". I've only ever seem the URLs be "http" based. Are there streams that are also "https" based?

macmpi commented 1 year ago

Hi, yes there are: https://stream.rfm.fr/rfm-wr14.aac BBC Radio 1 UK as per http://fmstream.org/index.php ...

macmpi commented 1 year ago

:+1: Thanks

macmpi commented 1 year ago

One bit though: sometimes those titles may be a quite long line which may not fit (has ...): any chance it could gently scroll in playing view, so that all may be read?

rbackhouse commented 1 year ago

I created https://github.com/rbackhouse/MaximumMPD/issues/97 to tackle that