Sie sind nicht angemeldet.

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

1

Donnerstag, 13. Oktober 2016, 12:01

internet speed detection

Hi,

we are working on a project and we like to detect the internet speed of the user on page load.
When it is slower then 'something' we like to pas a var (slow) to krpano and when it is quicker then (something) we like to send a var (quick) to krpano.
Is there a script for this, or maybe somebody has a working example and wants to share?

Thanks in advance for any help!

Tuur *thumbsup*

2

Dienstag, 18. Oktober 2016, 15:36

Hi Tuur *smile*

If you want to use krpano only you could preload a larger file (~5MB) and measure the loading time within the onloaded-event. A simple GT or LE-routine could then deliver a slow/fast-var which could be used for further actions. This way you could either use smaller or bigger pano-tiles etc. by loading the corresponding XML-file or by using txtadd to set specific filenames.

Best regards,
Nupsi

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

3

Dienstag, 18. Oktober 2016, 15:43

Hi Nupsi,

Thanks for your reaction!
I think a preload of a file like 5mb on page load of an already quite demanding tour and interface is not an option.
I will have a look at this though, i found some scripts already..Not sure if those are the right ones though.. yet.. But i think the whole fact of loading that sizes of files just to test the speed, and make the experience suffer is hard to sell.

I need some time to have a good try/test.

Thanks!
Tuur *thumbsup*

4

Dienstag, 18. Oktober 2016, 15:59

Yeah...there´s always a catch between fast loading times and high quality-content *sad*

My best advice is to create a special pause-event for such things, like an interesting welcome-message, welcome-image etc. which keeps the viewer busy and interested for a few seconds while the tour is doing it´s magic in the background. Another way would be to load a bunch of small files (multiple copys of one image i.e.) for a certain amount of time (10 secs i.e.) and then count the number of images that were be loaded during that time. Each loaded image could add +1 to a var in the onloaded-event and the final number would than be a usable speed-indicator. A technique I use for the background loading of a 3D-map inside krpano btw ;-)

I did some research too some time ago, but detecting the users connection speed requires always some kind of data to be loaded in the background. There is no direct detection which delivers such infos - as far as I know.

Good luck *thumbup*
Nupsi

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

5

Dienstag, 18. Oktober 2016, 16:22

Hi Nupsi,

thanks for the heads up and tip(s).

I have a look into this asap.
Maybe i come back with some questions.But i doubt if it is an option for the particular 360 video, excel cms based, 'grid' project.

Cheers!
Tuur *thumbsup*

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

6

Mittwoch, 19. Oktober 2016, 09:23

Hi!)

What if use a very small video in the background (say, size about 3 Mb) and check its http://krpano.com/plugins/videoplayer/#loadedbytes parameter after 5 or maybe 10 seconds and see how many bytes were loaded and so have some idea aout connection speed.
Regards,

Alexey