Hi, it seems your are trying to create an iFrame on-the-fly when hotspot is activated which may get involved.. Instead, we have a clean way to integrate embeds like panoramic views, youtube videos, etc. by simply inserting a link to an HTML page with your content. In the case of youtube (or vimeo), you can simply use the link of the youtube video.
Please review #2 that describes the process:
There are more than 70 new features, enhancements and fixes in the latest release of WebRotate 360 Product Viewer so far. Find out more and upgrade.
www.webrotate360.com