What would you have in the background behind the panorama?
Piotr
Benutzerinformationen überspringen
Beruf: krpano freelancer || creating ideas & coding them || krpano developer
these links may be helpful for you:
https://krpano.com/examples/hotspotextract/
https://krpano.com/forum/wbb/index.php?p…d&threadID=7272
Benutzerinformationen überspringen
Wohnort: Kobyłka, Poland
Beruf: Virtual Tours - Spherical Panoramas - Krpano developer
https://www.ai360.pl/projekty/car1/
Benutzerinformationen überspringen
Wohnort: Kobyłka, Poland
Beruf: Virtual Tours - Spherical Panoramas - Krpano developer
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
{
const open = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function (method, url) {
open.apply(this, arguments);
this.addEventListener('readystatechange', function _() {
if(this.readyState == this.HEADERS_RECEIVED) {
const contentType = this.getResponseHeader('Content-Type') || '';
if (contentType.startsWith('video/') || contentType.startsWith('audio/')) {
window.postMessage({
source: 'xmlhttprequest-open',
url,
mime: contentType,
method,
contentType
}, '*');
}
this.removeEventListener('readystatechange', _);
}
})
}
}
|