YouTube embedding no longer working in Chrome

wwwicked

Active member
Has anyone else encountered this? From today or so, embedded YouTube videos are no longer appearing when viewing in Chrome. The console says:

Refused to display 'http://www.youtube.com/v/AV1pjNqudf0&fs=1' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

I assume it's something to do with the latest Chrome update, but does anyone know what I need to change? Preferably something in the embed HTML, rather than my own browser (as I don't really want to have to tell all Chrome users to tweak X-setting).

I currently have the default:

HTML:
<object width="500" height="300" data="http://www.youtube.com/v/{$id}&amp;fs=1">
    <param name="movie" value="http://www.youtube.com/v/{$id}&amp;fs=1" />
    <param name="allowFullScreen" value="true" />
    <param name="wmode" value="opaque" />
    <embed src="http://www.youtube.com/v/{$id}&amp;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" wmode="opaque" width="500" height="300" />
</object>

Chrome is latest: Version 25.0.1364.152 m
 
I'm not sure you are referring to the same problem, but it is known that videos will often not show in Chrome if you have already viewed them a couple times!

As a test, try it in the incognito window and see if that works.....

Try flushing the browser cache completely (from beginning of time), logging out and then back in again and closing chrome and opening.
 
I'm not sure you are referring to the same problem, but it is known that videos will often not show in Chrome if you have already viewed them a couple times!

As a test, try it in the incognito window and see if that works.....

Try flushing the browser cache completely (from beginning of time), logging out and then back in again and closing chrome and opening.

I don't think that's the problem. I've restarted Chrome and was using Incognito in the first place - plus it's being reported by other forum users. I think it must be related to the most recent Chrome update, as it's only seemed to start happening in the past 24 hours or so.


I saw a suggestion to use this: http://www.youtube.com/embed/QXJPWqnQbbs instead of
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
, but XF YT embeds don't use the latter anyway.

I might try hacking the forum code to add header('X-Frame-Options: ALLOW');, and see if that helps (although that probably opens up other concerns...).
 
Tell you what's strange; the video above is working for me. Maybe I am not on the most recent version of XF, although I thought I was (I'm on 1.1.3). Will try updating this evening...
 
I wonder if the network caches are affecting this - that is, the cloud, google, your ISP and even sometimes your router will cache items.

In my case, the vids were in WP and the problem was the same - that is, if I had watched them a couple times, they showed up blank. But it was in chrome browser...
 
I've noticed some other XF forums where YouTube embeds seem to be working for me, and they're using:

HTML:
<iframe width="500" height="300" src="http://www.youtube.com/embed/wXRtpMtZFUI?wmode=opaque" frameborder="0" allowfullscreen></iframe>

That looks like it maps to the solution I mentioned above, so may try that. Not sure where the different embed method has come from though. This forum seems to be using the same <object> method that my forum is (but maybe this one is more up to date than the latest released version).
 
Back
Top Bottom