Hi Grzegorz,
Are you having to manually embed the HTML and JS into your page resource? If you are, then I think it would be simpler to do it using the Generico filter as you can set up a template to mostly do it all for you, I think. I don't currently have any 360 degree panoramas or videos to try it out with though.