[Gambas-user] Icecast catching metadata using gambas

Martín mbelmonte at belmotek.net
Wed Nov 8 15:26:07 CET 2023


Hi,

I try to get metadata from a stream source with

$ curl -H "Icy-MetaData:1" -v "https://stream.io/thestream.mp3" >/dev/null

Then I get this:

...

 > Icy-MetaData:1

< icy-br:192
< icy-description: Description of the stream
< icy-genre:Radio
< icy-name:Name of the stream
< icy-pub:1
< icy-url:http://stream.io
< icy-metaint:16000

...

But i want to know the tag "StreamTitle" but it is not present. Ii I use 
mpg123 for the same stream URL I get the info:

$ mpg123 https://stream.io/thestream.mp3
...

ICY-NAME: xxxxxx
ICY-URL: http://stream.io
MPEG 1.0 L III cbr192 48000 j-s
ICY-META: StreamTitle='This is the title';

So it is possible to access to all the metadata of the stream in gambas? 
Gstramer maybe?

I try to get some info from MediaPlayer class without success.

Sample:

$Media = New MediaPlayer As "Player"
$Media.URL = "http://ec3.yesstreaming.net:4500/stream"

Thanks.



More information about the User mailing list