initial fix for cross-origin. Also adds fixes for resized video content
origin build. code needs cleaning up