19 Jun '13 - 10:33 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: WMA streaming  (Read 1429 times)
ken
Posts: 630


« on: 18 Sep '06 - 12:26 »
Reply with quoteQuote

How can I get the bitrate of a WMA stream? MP3 streaming (from shoutcast) show bitrate.

I'm using  BASS.NET 2.0 / C# (NetRadio)
Logged
radio42
Posts: 4030


« Reply #1 on: 18 Sep '06 - 12:58 »
Reply with quoteQuote

When you are looking to the code of the NetRadio example:

In the "button1_Click" method (around line 390) you'll find the following code:

if ( BassTags.BASS_TAG_GetFromURL( _Stream, _tagInfo) )

In the respectice _tagInfo structure you'll find a "NativeTags" property, which let's you access all Tag-Values available.
To get the Bitrate you need to:
a) for WMA: look for an entry called: "Bitrate"
b) for ICY: look for an entry called: "icy-br"

Thats's how you might get the Bitrate for both WMA and SHOUTcast streams.
Logged
ken
Posts: 630


« Reply #2 on: 18 Sep '06 - 13:16 »
Reply with quoteQuote

Thx, works great!
Logged
cablehead
Posts: 195


« Reply #3 on: 19 Sep '06 - 00:07 »
Reply with quoteQuote

Is this the same as TAG_INFO?
Logged
radio42
Posts: 4030


« Reply #4 on: 19 Sep '06 - 11:59 »
Reply with quoteQuote

Yes, an instance of the TAG_INFO class has got the mentioned "NativeTags" property, which is a string[] containing all native tags.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines