Retrieves metadata tags from a channel (Shoutcast or Icecast), if they are available.
Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
Parameters
- handle
- Type: SystemInt32
The channel handle.
Return Value
Type: Stringor an array of strings. Each array element will represent one tag in the format 'Name=Value' (e.g. "StreamTitle='xyz'").
Remarks
In addition you might also use the BassTags class, which provides extended TAG reading support.
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not valid. |
BASS_ERROR_NOTAVAIL | The requested tags are not available. |
Examples
int stream = Bass.BASS_StreamCreateURL("http://www.radio42.com/playHiFi.pls", 0, BASSFlag.BASS_STREAM_STATUS, null, IntPtr.Zero); string[] tags = Bass.BASS_ChannelGetTagsMETA(stream); if (tags != null) { foreach (string tag in tags) Console.WriteLine(tag); }
See Also