Announcement

Collapse
No announcement yet.

Receiving info about online radio

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • thinktink
    replied
    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 

    Leave a comment:


  • thinktink
    replied
    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.

    Leave a comment:


  • Ingvar
    replied
    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...

    Leave a comment:


  • thinktink
    replied
    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...).

    Leave a comment:


  • Ingvar
    started a topic Receiving info about online radio

    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!
Working...
X