22 May '13 - 21:44 *
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 stream status  (Read 1597 times)
ken
Posts: 630


« on: 7 Dec '05 - 07:55 »
Reply with quoteQuote

How can I read the status of playing an internet stream (WindowsMedia) ?

In Microsoft mediaplayer there is an event "PlayStateChange" this is what I need, to get status on BASS if it:  plays,buffer,is stopped, no connection.

Any ideas? I code in C#
Logged
radio42
Posts: 4012


« Reply #1 on: 7 Dec '05 - 10:22 »
Reply with quoteQuote

Take a look to the BASS .NET C# sample called "NetRadio" that displays 'buffers', stream tags etc. - should be all you need?!
Logged
ken
Posts: 630


« Reply #2 on: 7 Dec '05 - 12:58 »
Reply with quoteQuote

I have tested "NetRadio" example (works fine) but I only get buffering info. The tags only work on mp3 stream like shoutcast. I get no info when connecting to a WMA stream.


I have no need for tag info (like artis, title) I only need streaming status, so I can reconnect if I loose the stream from the WMA encoder/server.

Thanks!
Logged
radio42
Posts: 4012


« Reply #3 on: 7 Dec '05 - 13:17 »
Reply with quoteQuote

Quote
I only need streaming status, so I can reconnect if I loose the stream from the WMA encoder/server
But the you can simply use BASS_ChannelIsActive ?!
Logged
Ian @ un4seen
Administrator
Posts: 15269


« Reply #4 on: 7 Dec '05 - 13:22 »
Reply with quoteQuote

You can also use a STALL sync (BASS_ChannelSetSync) to be notified when playback stalls/resumes, and an END sync will tell when it's ended.
Logged
ken
Posts: 630


« Reply #5 on: 7 Dec '05 - 15:26 »
Reply with quoteQuote

Thanks! I will try that.
Logged
ken
Posts: 630


« Reply #6 on: 7 Dec '05 - 15:57 »
Reply with quoteQuote

It works!

Both methodes works fine.

Now another question. Can I get info about the WMA stream? I like to get the "K Bit/s" value.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines