Author Topic: Strange mp3??  (Read 86 times)


  • Posts: 64
Strange mp3??
« on: 12 Jan '21 - 12:57 »
This following url

I use the bass to play shows error 2. if I put it into the browser,it's ok!
But I found a stranger thing,which in the browser can play when I click the play button. The player will not play immediately.
What's the problem ??

Ian @ un4seen

  • Administrator
  • Posts: 23288
Re: Strange mp3??
« Reply #1 on: 12 Jan '21 - 14:42 »
The server's HTTP status response is "403 Forbidden", ie. it's refusing the request. It looks like the server admin has blocked BASS, presumably because they think it's a stream ripper. You can get around that by changing the BASS_CONFIG_NET_AGENT setting.

If you would like to check the response headers in your app, you can do that by providing a DOWNLOADPROC callback function and using the BASS_STREAM_STATUS flag in your BASS_StreamCreateURL call. An example of doing that can be found in the NETRADIO example included in the BASS package. When you want to just quickly check a URL, you can try it with the pre-compiled NETRADIO.EXE example (in C\BIN folder).


  • Posts: 64
Re: Strange mp3??
« Reply #2 on: 12 Jan '21 - 15:35 »
 ;D ;D ;D ;D
Many tks for my darling Ian.
You're right. I use this code

It's can play.
Very Tks for you . ;D ;D