Looking at your intro-file.cfm file makes things clearer.
If your code inside the file is working fine, I think that you could get the dimensions from the preview_wrapper container.
Just two questions:
$ ... in $('.loading-video').slideUp() for instance, shouldn't you be including the jquery.js file inside your intro-file.cfm file?## before the selector in $('##preview_wrapper').width() correct?Assuming that everything is working fine, then try including in your fancybox script:
scrolling: "no", // optional to avoid scrollbars inside fancybox
beforeShow: function(){
this.width = $('.fancybox-iframe').contents().find('#preview_wrapper').width();
this.height = $('.fancybox-iframe').contents().find('#preview_wrapper').height();
}
... to get the dimensions from the player's wrapper.