WebGadget - not a 'full' browser

Linux specific forum
Perkin
Enthusiast
Enthusiast
Posts: 504
Joined: Thu Jul 03, 2008 10:13 pm
Location: Kent, UK

WebGadget - not a 'full' browser

Post by Perkin »

I'm trying to get some code working on linux, which works perfectly well in Windows,
but the WebGadget isn't being recognised as being a 'full' browser - as though it's a mobile device.

See this topic for details.

http://www.purebasic.fr/english/viewtop ... 15&t=47892

The code simply opens a window with a WebGadget and directs it to a site, but the Linux version get's redirected to a warning page.

Code: Select all

url.s="http://www.bbc.co.uk/iplayer/console/bbc_radio_two"
OpenWindow(0,400,50,420,720,"BBC Radio 2", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget)
WebGadget(1,0,0,420,720,url)
Repeat
  evn = WaitWindowEvent()
Until evn = #PB_Event_CloseWindow
%101010 = $2A = 42
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: WebGadget - not a 'full' browser

Post by IdeasVacuum »

In Windows there is a dependency, the Atl.dll, which wants to be in the same folder as your app. Could it be that something similar is required on Linux?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: WebGadget - not a 'full' browser

Post by Kuron »

Are you sure the BBC site isn't buggy?
Best wishes to the PB community. Thank you for the memories. ♥️
Perkin
Enthusiast
Enthusiast
Posts: 504
Joined: Thu Jul 03, 2008 10:13 pm
Location: Kent, UK

Re: WebGadget - not a 'full' browser

Post by Perkin »

Kuron wrote:Are you sure the BBC site isn't buggy?
Quite possibly, however...

The code sample works perfectly well from Windows (XP and 7)
and the url opens fine and streams from several browsers.
(IE/FF/Chrome/Opera on Windows, and FF on Linux)

Other BBC addresses (non streaming) seem to load fine from same code, but as this is specifically the page I want to open, I would like to resolve this problem.
%101010 = $2A = 42
User avatar
Kuron
Addict
Addict
Posts: 1626
Joined: Sat Oct 17, 2009 10:51 pm
Location: Pacific Northwest

Re: WebGadget - not a 'full' browser

Post by Kuron »

Perkin wrote:
Kuron wrote:Are you sure the BBC site isn't buggy?
Quite possibly, however...

The code sample works perfectly well from Windows (XP and 7)
and the url opens fine and streams from several browsers.
(IE/FF/Chrome/Opera on Windows, and FF on Linux)

Other BBC addresses (non streaming) seem to load fine from same code, but as this is specifically the page I want to open, I would like to resolve this problem.
It sounds like the BBC site is buggy. The player on that page sounds like it is only detecting the major browsers and doing so by browser name instead of rendering engine.

This really sounds like a buggy site and not a PB issue and given the number of errors on that web page, I am even more convinced.
Best wishes to the PB community. Thank you for the memories. ♥️
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: WebGadget - not a 'full' browser

Post by IdeasVacuum »

There probably isn't a website that is totally bug free but the BBC site is constantly maintained - the fact that practically any browser on the Windows platform can view/play the specific BBC page of interest without issues suggests that the page is not faulty - it would be interesting to know from other Linux (or indeed Mac) Users if they experience a problem with that page on their machines. I wonder what, if any, hardware resource the browsers might be using on Windows - could it be that the browser support on Windows is better than it is on Linux, and something required for the page streaming is not made available on Linux?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply