Author Topic: BASS_StreamCreateURL and HTTPS  (Read 1370 times)

Smogg

  • Posts: 3
BASS_StreamCreateURL and HTTPS
« on: 17 Jul '13 - 20:01 »
Hello!

As i see there is no problem with playing mp3 through HTTP-protocol.

But what need to play files that coming over HTTPS-protocol?

And one another noobie-question:
Is there any way to get downloaded data from this Stream?

UPD:
After searching i understand that all this stuff should be implemented manually:
1)files though https need to download by myself because of strange authetification ateps
2)if i want control downloaded data then there is need to use CreateChannelUser, not CreateChannelURL
« Last Edit: 18 Jul '13 - 11:56 by Smogg »

Ian @ un4seen

  • Administrator
  • Posts: 20389
Re: BASS_StreamCreateURL and HTTPS
« Reply #1 on: 18 Jul '13 - 13:45 »
What platform are you using BASS on? If it's Windows/OSX/iOS, then HTTPS URLs should be supported by BASS_StreamCreateURL. You can also use a DOWNLOADPROC callback function to receive the downloaded data. Please see the documentation for details.

Smogg

  • Posts: 3
Re: BASS_StreamCreateURL and HTTPS
« Reply #2 on: 18 Jul '13 - 21:05 »
Platform is Windows.

DOWNLOADPROCfunc has complete and useful documentation. I like it)

But there nothing about https except "Should begin with "http://" or "https://" or "ftp://", or another add-on supported protocol."
May be alone bass.dll is not enough?


Ian @ un4seen

  • Administrator
  • Posts: 20389
Re: BASS_StreamCreateURL and HTTPS
« Reply #3 on: 19 Jul '13 - 16:45 »
Please provide an example HTTPS URL that you're having trouble with, to investigate what's going on.

Smogg

  • Posts: 3
Re: BASS_StreamCreateURL and HTTPS
« Reply #4 on: 19 Jul '13 - 21:44 »
"Code example" is netradio-example from .zip.  (С language)

I changed only source link.
All available default-staition plays. All http://site.domen/[path]/filename.mp3 that i tested played also...

If you think that all must to be OK without efforts may be it is server blame? It is vk.com.
I trying download straightly from server. And only browser that interprete downloadable links in html-code to https-style is FireFox. All downloaders can handle FireFox-links. Links are valid.

Links tied to IP, so no reason to post example-link. Its change.
« Last Edit: 19 Jul '13 - 22:00 by Smogg »

Ian @ un4seen

  • Administrator
  • Posts: 20389
Re: BASS_StreamCreateURL and HTTPS
« Reply #5 on: 22 Jul '13 - 15:34 »
Are you having the problem with all HTTPS URLs or is it only with the vk.com server? One thing you could try is increasing the timeout via the BASS_CONFIG_NET_TIMEOUT option. Also, for comparison, here's a URL that you can try...

   https://uk.un4seen.com/test.mp3

Do you have the problem with that too?