Enabling geolocation on chromiun

Hi,

I’m using player version 2 R254.1 on Windows 10, and I’m trying to use the geolocation info, from a webpage and I only get a response that the geolocation is denied.
Is there a way to enable it ? If not, is there a way to get it from the latitude and longitude information present on the player configuration ? What about the other operational system Android and Linux, are these options available too ?

PS.: Using the Geo Schedule from CMS isn’t an option, because the webpage widget is already inside a playlist.

Thanks in advance,

Hi,

Sorry for the delay.

The browser api isn’t supported via cef in windows, or in our android player (because it isn’t implemented on our side).

I think I could add it here if the device knows its own location (via the Windows Location API). You could then call http://localhost:9696/info in your web page widget to get the lat/long.

I believe I could do the same in Android too and have made a note on that accordingly.

Hi Dan,
first of all, thanks for your attention!

Have access to all information about the player in a centralized point sounds great!!!
I already tested the ‘/info’ on an Android player and works great.

Any ideas when it will be available for Windows players?

thanks in advance,

1 Like

I’ve got it pegged for the next release and plan to implement it this week. If I can pull together a pre-release for testing I will come back on this issue and let you know.

Tks,
let me know if I can help somehow

1 Like

You can try this pre-release: https://transfer.xibo.org.uk/c70ee7a2bab8

The endpoint to call is http://localhost:9696/info

Hi Dan,
thanks for your dedication.
Unhappilly, it didn’t work. When I tried to access ‘http://localhost:9696/info’ from the player, I got a 404 - Not Found page (Exception type: EmbedIO.HttpException).
I tried accessing the url from a webpage widget, directly in a layout and from a web browser (in the same machine) and got the same results.
I checked the version number in the About tab of player options and it still shows 2 R254.1. To make sure that I didn’t make any mistake, I desinstalled the version and installed the new one again.
The version number still the same and the error too.
I hope it helps,

thanks in advance,

It is entirely my fault, sorry! I missed a build step when producing the MSI :man_facepalming:

I’ve prepared another: https://transfer.xibo.org.uk/f65c92b4e1c6

Hi Dan,

now, the request is working without failures (the status response is 200), however it doesn’t bring any information, there is no response at all.

PS.: the version number now is correct: 2 R255.2

Strange!

Tomorrow I’ll attach the Layout I am using to test this (which seems to be working).

All I am doing though is a $.get("http://localhost:9696/info"); request in an embedded widget.

I didn’t think about opening it directly in a browser, ill try that too, althogh there shouldn’t be any difference.

I actually know exactly whats happening - I haven’t properly handled a case where GeoLocation is not available, and that is throwing out the whole request.

I’ve built a new MSI with that fixes the oversight. https://transfer.xibo.org.uk/cec64c668268

Unfortunately that most likely means you’re Player isn’t able to get its location from Windows via the Windows Location API. It may be something simple like this being turned off - worth checking that!

1 Like

You are the man, Dan!!!

Now it is working perfectly!!! But, you were right, the localization in the player was turned off
I installed the new version and turned on the localization and now is getting the information correctly!!

Thanks a lot!!

Now, we’ll just wait to the release of this version to put it in production!!

PS.: Is there any application for the hardware key ? I don’t see why is there…

1 Like

Great, pleased that is working!

Should be today :crossed_fingers:

Requested by a user who has their Xibo Display’s synced to a 3rd party system, which they then call with our hardware key to return some data specific to that Display. Quite tidy!

Thanks,
Dan

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.