youtube video will not display in desktop Chrome

Posted by mwalrath on Stack Overflow See other posts from Stack Overflow or by mwalrath
Published on 2012-10-12T16:38:53Z Indexed on 2012/10/12 21:37 UTC
Read the original article Hit count: 110

Filed under:
|
|

Youtube video does not show up in a modal window when viewed in a desktop version of Chrome. The modal window pops up but the youtube video does not.

https://animalhealth.pfizer.com/sites/pahweb/US/EN/Products/Pages/ClarifideStories.aspx

It works in IE and Firefox on Windows7, works in Chrome on Android ICS and iOS6 iPad.

It is on a sharepoint site

but if I open a version saved to my desktop it works fine in chrome.

I am using jquery fancybox

How it is called

    <a class="iframe" href="http://www.youtube.com/watch?  v=nGAyZSFDYh0&feature=player_embedded#at=41" style=" float: left;">


javascript
    <script type="text/javascript">
    $(".iframe").click(function() {
    $.fancybox({
            'padding'       : 0,
            'autoScale'     : false,
            'transitionIn'  : 'none',
            'transitionOut' : 'none',
            'title'         : this.title,
            'width'     : 680,
            'height'        : 495,
            'href'          : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
            'type'          : 'swf',
            'swf'           : {
                 'wmode'        : 'transparent',
                'allowfullscreen'   : 'true'
            }
        });

    return false;
});
</script> 

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about google-chrome