SDL_OpenURL

Discussions related to network, internet and socket programming; also to serial, parallel, Bluetooth, USB etc.
Richard Russell
Posts: 366
Joined: Tue 18 Jun 2024, 09:32

SDL_OpenURL

Post by Richard Russell »

The SDL developers recently fixed an issue with SDL_OpenURL which prevented it working correctly on recent versions of iOS. This should mean that it now works on all the platforms supported by BBCSDL, using this syntax (here to open bbcbasic.co.uk):

Code: Select all

      SYS "SDL_OpenURL", "https://www.bbcbasic.co.uk", @memhdc%
(requires BBCSDL v1.41a in order to run in iOS and in a browser).

This is potentially a very powerful capability, because in principle (I've not tested it) it should be possible to use this mechanism to pass 'URL parameters' to an http server, even when conventional socket access isn't available, for example when running in a browser.