Author Topic: basshls play error ??  (Read 203 times)

terry_zhou82

  • Posts: 40
basshls play error ??
« on: 5 Jun '19 - 15:50 »
I use this code to play the radio
CHAN:= BASS_HLS_StreamCreateURL(PWideChar(url), BASS_UNICODE or BASS_SAMPLE_FLOAT, nil, nil);// error. The error code  is 20. BASS_ERROR_ILLPARAM

but strangely
CHAN:= BASS_HLS_StreamCreateURL(PWideChar('xxxx.m3u8'), BASS_UNICODE or BASS_SAMPLE_FLOAT, nil, nil) //it's work

somebody know why ??

Ian @ un4seen

  • Administrator
  • Posts: 21973
Re: basshls play error ??
« Reply #1 on: 5 Jun '19 - 17:09 »
BASS_ERROR_ILLPARAM indicates that the "url" parameter isn't a valid URL. What is the content of your "url" variable?