BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_ChannelGetTagsMETA Method BASS.NET API for the Un4seen BASS Audio Library
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.12.0
Syntax

public static string[] BASS_ChannelGetTagsMETA(
	int handle
)

Parameters

handle
Type: SystemInt32
The channel handle.

Return Value

Type: String
or an array of strings. Each array element will represent one tag in the format 'Name=Value' (e.g. "StreamTitle='xyz'").
Remarks

Only available when streaming from Shoutcast.

In addition you might also use the BassTags class, which provides extended TAG reading support.

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.
BASS_ERROR_NOTAVAILThe requested tags are not available.

Examples

VB
Dim stream As Integer = Bass.BASS_StreamCreateURL("http://www.radio42.com/playHiFi.pls", 0, 
                             BASSFlag.BASS_STREAM_STATUS, Nothing, IntPtr.Zero)
Dim tags As String() = Bass.BASS_ChannelGetTagsMETA(stream)
If Not (tags Is Nothing) Then
  Dim tag As String
  For Each tag In tags
    Console.WriteLine(tag)
  Next tag
End If
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

Reference