Announcement

Collapse
No announcement yet.

Receiving info about online radio

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

  • 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!

  • #2
    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...).
    | Opus Audio Codec plugins 2.0 | Embedded Album Art | DiskWrite |
    | Save your playlist first! | Live voice-over | X-Fade 2.5 |
    | AterKast (Source DSP) | More of my stuff... |

    Comment


    • #3
      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...

      Comment


      • #4
        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.
        | Opus Audio Codec plugins 2.0 | Embedded Album Art | DiskWrite |
        | Save your playlist first! | Live voice-over | X-Fade 2.5 |
        | AterKast (Source DSP) | More of my stuff... |

        Comment


        • #5
          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 
          | Opus Audio Codec plugins 2.0 | Embedded Album Art | DiskWrite |
          | Save your playlist first! | Live voice-over | X-Fade 2.5 |
          | AterKast (Source DSP) | More of my stuff... |

          Comment

          Working...
          X