Author Topic: Demo netradio stream https  (Read 291 times)

Pedro Leonardo

  • Posts: 94
Demo netradio stream https
« on: 23 Dec '24 - 23:56 »
What do I need to do to make the demo netradio play an https stream address? Addresses that are http play normally, but https do not play.

Regards

MB_SOFT

  • Posts: 499
Re: Demo netradio stream https
« Reply #1 on: 24 Dec '24 - 12:12 »

Chris

  • Posts: 2221
Re: Demo netradio stream https
« Reply #2 on: 24 Dec '24 - 12:18 »
Hi
  i did here a quick test with the Delphi Netradio Example with https://s7-webradio.antenne.de/rockantenne
will open the stream fine.

Pedro Leonardo

  • Posts: 94
Re: Demo netradio stream https
« Reply #3 on: 24 Dec '24 - 14:11 »
in oncreat it is like this:

Code: [Select]
procedure TForm1.FormCreate(Sender: TObject);
var   P: HPlugin;
begin
  // check the correct BASS was loaded
  win := handle;
  if (HIWORD(BASS_GetVersion) <> BASSVERSION) then
  begin
    MessageBox(0, 'An incorrect version of BASS.DLL was loaded', nil, MB_ICONERROR);
    Halt;
  end;
  if (not BASS_Init(-1, 44100, 0, handle, nil)) then
  begin
    Error('Can''t initialize device');
    Halt;
  end;
  BASS_SetConfig(BASS_CONFIG_NET_PLAYLIST, 1); // enable playlist processing
   P := BASS_PluginLoad(PChar('bass_aac.dll'), BASS_Unicode);
   P := BASS_PluginLoad(PChar('bassflac.dll'), BASS_Unicode);
   P := BASS_PluginLoad(PChar('basshls.dll'), BASS_Unicode);
   P := BASS_PluginLoad(PChar('basswma.dll'), BASS_Unicode);
   P := BASS_PluginLoad(PChar('bass_ssl.dll'), BASS_Unicode);
end;


On some machines it play. On others it doesn't. What do I have to do in Windows to play?
a machine that doesn't work has windows 7

Regards
« Last Edit: 24 Dec '24 - 14:22 by Pedro Leonardo »

MB_SOFT

  • Posts: 499
Re: Demo netradio stream https
« Reply #4 on: 24 Dec '24 - 14:31 »
bass_ssl is not a plugin to load. just put it in the same folder with bass.dll

try to install openssl in that old windows 7 computer

Ian @ un4seen

  • Administrator
  • Posts: 26223
Re: Demo netradio stream https
« Reply #5 on: 24 Dec '24 - 16:20 »
The BASS_SSL add-on is currently only used by BASSenc on Windows, so it won't actually affect playback. BASS uses Windows' HTTPS support, so the issue in this case is probably that Windows 7 doesn't include support for the ciphers required by the servers you're connecting to. Can you provide an example URL, and can you open it in Internet Explorer?

Pedro Leonardo

  • Posts: 94
Re: Demo netradio stream https
« Reply #6 on: 24 Dec '24 - 20:12 »
Hi, Ian, Here is the url

https://radionacionalbrasilia-stream.ebc.com.br/index.m3u8

in windows 10 it opens normally

Regards

terry_zhou82

  • Posts: 100
Re: Demo netradio stream https
« Reply #7 on: 29 Dec '24 - 03:44 »
or sometimes you can use the url on this way:
http://xxxxxx