Old 2nd September 2022, 00:24   #1
Ingvar
Junior Member
 
Join Date: Aug 2022
Posts: 20
Receiving info about online radio

Hello! When listening to online radio station, you can see that Winamp displays metadata information that contains:

Title
Arist
Genre
Stream
Homepage

If use IPC_GETPLAYLISTFILEW or IPC_GETPLAYLISTTITLEW I always get a combined string consists of: Artist+Title+Stream.

How to get these values separately when listening to a radio station? What commands can the plugin send?

And how to get metadata like Server, Content-Type etc.? There is no any information in SDK.

Thanks!
Ingvar is offline   Reply With Quote
Old 2nd September 2022, 20:33   #2
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: No longer on the streets of Kings County, CA.
Posts: 3,184
Inside wa_ipc.h please see "IPC_GET_EXTENDED_FILE_INFOW":
PHP Code:
typedef struct {
  const 
wchar_t *filename//In
  
const wchar_t *metadata//In
  
wchar_t *ret//Out
  
size_t retlen//In/Out
extendedFileInfoStructW;

#define IPC_GET_EXTENDED_FILE_INFOW 3026 
/* (requires Winamp 5.13+)
** Pass a pointer to the above struct in wParam
*/


#define IPC_GET_EXTENDED_FILE_INFOW_HOOKABLE 3027
#define IPC_SET_EXTENDED_FILE_INFOW 3028 
/* (requires Winamp 5.13+)
** Pass a pointer to the above struct in wParam
*/ 
Example:
PHP Code:
wchar_t ret[256];
memset(ret,0,sizeof(ret));

extendedFileInfoStructW efisW;
memset(&efisW,0,sizeof(extendedFileInfoStructW));

efisW.filename=L"C:\\Full\\Path\\To\\File.mp3";
efisW.metadata=L"YEAR";
efisW.ret=((wchar_t *)(ret));
efisW.retlen=255;
::
SendMessage(plugin.hwndParent,WM_WA_IPC,((WPARAM)(&efisW)),IPC_GET_EXTENDED_FILE_INFOW);
//After the call to SendMessage completes, the ret buffer should now contain the requested metadata if it exists. 
It may or may not work for streams, not all plugins/protocols support individual metadata vectors (TITLE, ARTIST, ALBUM, YEAR, whatnot...).
thinktink is offline   Reply With Quote
Old 5th September 2022, 01:33   #3
Ingvar
Junior Member
 
Join Date: Aug 2022
Posts: 20
Quote:
Originally Posted by thinktink View Post
Inside wa_ipc.h please see "IPC_GET_EXTENDED_FILE_INFOW":
Yeah, before opening this topic, I checked a few messages from wa_ipc.h (including IPC_GET_EXTENDED_FILE_INFOW).

Unfortunately this message only works for local files, and does not give any results for online radio stations. I requested metadata fields like: Station, Website, Artist, Stream name, Genre and Title. But the response always came with an empty string.

It's strange that there is no API implementation for manage online radio/channels. Or maybe not documented...
Ingvar is offline   Reply With Quote
Old 5th September 2022, 15:00   #4
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: No longer on the streets of Kings County, CA.
Posts: 3,184
Quote:
Originally Posted by Ingvar View Post
Yeah, before opening this topic, I checked a few messages from wa_ipc.h (including IPC_GET_EXTENDED_FILE_INFOW).

Unfortunately this message only works for local files, and does not give any results for online radio stations. I requested metadata fields like: Station, Website, Artist, Stream name, Genre and Title. But the response always came with an empty string.

It's strange that there is no API implementation for manage online radio/channels. Or maybe not documented...
At the moment my server is throwing up BSOD screens so my focus is on that at the moment but I am looking into this. It's going to take some time.
thinktink is offline   Reply With Quote
Old 5th September 2022, 17:18   #5
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: No longer on the streets of Kings County, CA.
Posts: 3,184
Try these:
PHP Code:
mime
family
type
formatinformation
length
bitrate
lossless
width
height
codec
rating
gain
vbr
stereo

title
artist
album
albumartist
year
genre
comment
composer
disc
track
bpm
category
director
producer

streamtitle
streamtype
streammetadata
streamname
streamurl
streamgenre 
thinktink is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump