Sie sind nicht angemeldet.

1

Donnerstag, 12. November 2015, 17:33

webglsettings: {preserveDrawingBuffer: true} works locally, not online

Dear Klaus/Krpano Community,

so we've been recently developing a screenshot module for our materials, and I understand that this setting (preserveDrawingBuffer) is essential for this to work.

Question is, what is the correct way of setting it up?

Currently we have:

Quellcode

1
webglsettings: {preserveDrawingBuffer: true}


in the embed parameters, and it and the whole screenshot function we've developed works fine on a localhost server, but when uploaded into our online system it doesn't. The krpano js and the embedding code seems to be just the same...

While browsing around the forum I noticed there was another way of setting this variable, by using:

Quellcode

1
embedpano({..., html5:"prefer+preservedrawingbuffer", ...});


At the moment I don't have access to our central html template file, so I can't test that one out, but anyway, which is the proper way?

Could there be any other reasons for this whole thing not to work? I'm getting no errors by the way, but online I get a blank black image when invoking the canvas's toDataURL() method. Again, locally it works like a charm. Any ideas? Thanks!

2

Donnerstag, 12. November 2015, 17:44

Okay, that was fast, I gained access to the html file and edited in the latter version of the embed parameters. It works now just fine!

So Klaus, what's up with the first method? It works locally, but not online...are you aware of this, or is this some kind of strange bug on my side?

Oh, I'm testing with Chrome 46.

3

Dienstag, 17. November 2015, 08:32

Hi,
So Klaus, what's up with the first method? It works locally, but not online...are you aware of this, or is this some kind of strange bug on my side?
Are you using the right version (1.19-pr3) online?

Best regards,
Klaus

4

Dienstag, 17. November 2015, 11:58

:)

That must be the reason, then. I didn't realize this setting was only for the newest version. Thanks for the clarification, Klaus!