radiobrowser-api icon indicating copy to clipboard operation
radiobrowser-api copied to clipboard

Bitrate information is sometimes "0"

Open haecker-felix opened this issue 7 years ago • 1 comments

On some stations the bitrate information is 0.

For example "Deutschlandfunk"


id":"59591"
"name":"Deutschlandfunk  [Ogg 104k]",
...
"bitrate":"0"
...

When the bitrate information can't be read correctly, it think it's better to use "-" or "?" instead of 0.

haecker-felix avatar Dec 31 '17 17:12 haecker-felix

not all streams do provide bitrate information in the header. i could do a deep check by playing each stream, but for now i keep it simple. maybe after the transition from PHP to RUST on the server, i will continue this idea. but i have to think about it first, i do not want to program a player myself :)

segler-alex avatar Mar 21 '18 18:03 segler-alex