Author Topic: BassHls can't create stream from specific URL  (Read 229 times)

kozima

  • Posts: 12
Hi, I'm trying to record a stream from this url: http://evpp.mm.uol.com.br/band/nativa_riopreto/chunklist_w504400722.m3u8 but return 0 and i get BASS_ERROR_FILEOPEN error.

following is my code:

stream = BassHls.BASS_HLS_StreamCreateURL(url,
                                     BASSFlag.BASS_SAMPLE_MONO | BASSFlag.BASS_STREAM_AUTOFREE, null, (IntPtr)idStation);

Console.WriteLine(Bass.BASS_ErrorGetCode());

Thanks

Ian @ un4seen

  • Administrator
  • Posts: 21016
Re: BassHls can't create stream from specific URL
« Reply #1 on: 9 Feb '18 - 13:32 »
That URL is working OK here, so that's strange. BASS_ERROR_FILEOPEN indicates that BASS couldn't open the URL. Are you able to play it with other software? Make sure you haven't accidentally added any spaces at the start/end of the URL string.

kozima

  • Posts: 12
Re: BassHls can't create stream from specific URL
« Reply #2 on: 9 Feb '18 - 13:53 »
it was my mistake i didn't realize that the url had double quotes...
Thanks for the help.