Author Topic: Embedded Youtube videos no longer work in Chrome  (Read 1992 times)

Chaos

  • Global Moderator
  • Order of Ambrosia
  • *****

  • Offline Offline
    • View Profile
Embedded Youtube videos no longer work in Chrome
« on: August 14, 2016, 07:26:26 PM »
It seems that Google has finally decided to ditch Flash which means that embedded Youtube videos no longer work on FFTogether. There's some fixing to be done, Bram. ;D

You can listen to this beautiful compilation while doing it:



Or maybe not if you're a Chrome user. :P



I googled this a bit. It seems to be a simple matter of replacing some of the generated HTML code. This is what is currently generated:

Code: [Select]
<embed src="http://www.youtube.com/v/QaAcrSYlfvs&amp;rel=1&amp;fs=1" type="application/x-shockwave-flash" allowFullScreen="true" allowScriptAccess="never" wmode="transparent" width="425px" height="350px">
  <noembed>
    <a href="http://www.youtube.com/watch?v=QaAcrSYlfvs" target="_blank">http://www.youtube.com/watch?v=QaAcrSYlfvs</a>
  </noembed>
</embed>

This should be the correct HTML:
Code: [Select]
<iframe width="425" height="350" src="https://www.youtube.com/embed/QaAcrSYlfvs" frameborder="0" allowfullscreen></iframe>

Widescreen support would also be nice.

« Last Edit: August 14, 2016, 07:39:49 PM by Chaos »
"Most people think time is like a river that flows swift and sure in one direction, but I have seen the face of time, and I can tell you - they are wrong." ~ Prince of Persia

Da_Cloud

  • FFTogether's Webmaster &
  • Administrator
  • Order of Ambrosia
  • *****
  • Men cry not for themselves, but for their comrades
  • Mood: Relaxed Relaxed

    Offline Offline
    • View Profile
Re: Embedded Youtube videos no longer work in Chrome
« Reply #1 on: August 15, 2016, 11:58:54 AM »
The fix is quite simple, but finding where to make that fix isn't :P


Chaos

  • Global Moderator
  • Order of Ambrosia
  • *****

  • Offline Offline
    • View Profile
Re: Embedded Youtube videos no longer work in Chrome
« Reply #2 on: August 15, 2016, 06:24:04 PM »
Start digging. ;D Didn't you make the Youtube tag yourself in the first place?

"Most people think time is like a river that flows swift and sure in one direction, but I have seen the face of time, and I can tell you - they are wrong." ~ Prince of Persia

Da_Cloud

  • FFTogether's Webmaster &
  • Administrator
  • Order of Ambrosia
  • *****
  • Men cry not for themselves, but for their comrades
  • Mood: Relaxed Relaxed

    Offline Offline
    • View Profile
Re: Embedded Youtube videos no longer work in Chrome
« Reply #3 on: August 15, 2016, 09:17:34 PM »
Like 6 years ago or something :o



Thank god for modern IDE's with proper search options :P


Chaos

  • Global Moderator
  • Order of Ambrosia
  • *****

  • Offline Offline
    • View Profile
Re: Embedded Youtube videos no longer work in Chrome
« Reply #4 on: August 15, 2016, 11:20:14 PM »
And it's fixed. ^_^

Just admit it, you wanted to watch the movie on the forum.

"Most people think time is like a river that flows swift and sure in one direction, but I have seen the face of time, and I can tell you - they are wrong." ~ Prince of Persia